public RedirectResult DenyLeave(int?id, string userid, string returnUrl)
 {
     if (id != null && userid != null)
     {
         var result = leavemanagerRepo.DenyLeave(id.Value, userid);
         if (result != false)
         {
             return(Redirect(returnUrl));
         }
     }
     TempData["Error"] = "Something went wong and this request could not be completed. please retry in a moment";
     return(Redirect(returnUrl));
 }