public static void Main()
LeaveApplication app = new LeaveApplication();
app.LeaveType = (EnumList.LeaveType)byte.Parse("1");
Console.WriteLine(app.LeaveType);
Console.WriteLine(Enum.Parse(typeof(EnumList.LeaveType), "1"));
public class LeaveApplication
public Guid Id { get; set; }
public string EmployeeId { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public EnumList.LeaveType LeaveType { get; set; }
public enum LeaveType : byte