I have a class like:
public class Soru
{
public void SoruKaydet(){...}
private static void SoruEtiketKaydet(Guid soruId, Etiket etiket, DbManager db){...}
public Guid? SoruId { get; set; }
public Guid? SoranId { get; set; }
public int? BakilmaSayisi { get; set; }
public string HtmlGovde { get; set; }
public string MarkdownGovde { get; set; }
public string Baslik { get; set; }
public int? KategoriId { get; set; }
public DateTime OlusturulmaTarihi { get; set; }
public List<Etiket> Etiketler { get; set; }
}
I need another class should contain some of variables in class "Soru". I have two scenario for this.
The first scenario:
public class SoruSayfa
{
public static List<SoruSayfa> SoruSayfaGetir(){...}
public Guid? SoruId { get; set; }
public Guid? SoranId { get; set; }
public int? BakilmaSayisi { get; set; }
public string Baslik { get; set; }
public int? KategoriId { get; set; }
public int DurumId { get; set; }
public double SoruPuani { get; set; }
public int CevapSayisi { get; set; }
public int BakilmaSayisi { get; set; }
public string KullaniciAdi { get; set; }
public double? KisiAlanPuani { get; set; }
}
The second scenario:
public class SoruSayfa
{
public static List<SoruSayfa> SoruSayfaGetir(){...}
// Refers the class Soru instead of some variables of it
public Soru MySoru { get; set; }
public int DurumId { get; set; }
public double SoruPuani { get; set; }
public int CevapSayisi { get; set; }
public int BakilmaSayisi { get; set; }
public string KullaniciAdi { get; set; }
public double? KisiAlanPuani { get; set; }
}
In first scenario, there is not extra variable which is not used, but in second scenario some variables of MySoru is not used(HtmlGovde, MarkdownGovde, OlusturulmaTarihi, Etiketler). In addition, Soru and SoruSayfa classes will be used as model for different actions in asp .net MVC. They contain different methods. Which scenario is better?