public ActionResult ApplyLeave(Leave leave)
 {
     try
     {
         leave.Email = User.Identity.GetUserName();
         _leaveServices.ApplyLeave(leave);
         return(RedirectToAction("Index"));
     }
     catch (Exception e)
     {
         return(RedirectToAction("index"));
     }
 }