public ActionResult checkLeave(string SD) { string MSID = Session["MSID"].ToString(); if (ApplyLeave.toCheckLeave_OOO(MSID, SD) == true) { return(Content("Your Leave is already applied. Go to view leave and update the screenshot")); } else { return(Content("")); } }