public ActionResult SaveLeave(Leave leave)
 {
     SaveLeaveControl uco = new SaveLeaveControl();
     leave = uco.Save(leave);
     return View("NewLeave", leave);
 }
 public Leave Save(Leave leave)
 {
     if (leave != null)
         leave.LeaveID = "LE010001";
     return leave;
 }
        private Leave getExpectedLeave()
        {
            Leave result = new Leave();

            return result;
        }