I create a model using EF6 .My model is like this :
public partial class Good
{
public Good()
{
this.InnoviceDetails = new HashSet<InvoiceDetail>();
}
public int Id { get; set; }
public string Serial { get; set; }
public string HasTax { get; set; }
public string InitialAmount { get; set; }
public string Group { get; set; }
public virtual ICollection<InvoiceDetail> InnoviceDetails { get; set; }
}
One of the my columns is HasTax and the value of this is 1 and 0 ,but in mygridview i need to change these values (0,1). i mean if the value is 1
shows Yes and if it is 0
shows No.I want to do these using get
method of my model ?Is it possible ?
Get method checks the values in database and return proper values to gridview
or Presentation layer ?
Best regards