I have a Mesa class:
public class Mesa
{
public int Cdmesa { get; set; }
public int Flsituacao { get; set; }
public string Status { get; set; }
}
I would like to return the Status with the following conditions:
If Status = 1 return Status "FREE"
If Status = 2 return Status "OCCUPIED"
Is it possible to do this directly in the class?