public ActionResult NotificationStakeholderList(Search_StakeholderMailSentReceive obj) { if (Convert.ToString(Session["UserId"]).Trim().Length > 0) { if (obj.PageIndex == 0) { obj.PageIndex = 1; } if (obj.PageSize == 0) { obj.PageSize = 10; } if (obj.FromDate == null) { obj.FromDate = ""; } if (obj.ToDate == null) { obj.ToDate = ""; } if (obj.Status == null) { obj.Status = "0"; } ViewBag.FromDate = obj.FromDate; ViewBag.ToDate = obj.ToDate; ViewBag.Status = obj.Status; NotificationListBusinessService objNBS = new NotificationListBusinessService(); return(View(objNBS.GetStakeholderMailSentResponse(obj))); } else { return(RedirectToAction("Index", "Login")); } }
public IHttpActionResult GetStakeholderMailSentResponse(Search_StakeholderMailSentReceive obj) { if (obj.PageIndex == 0) { obj.PageIndex = 1; } if (obj.PageSize == 0) { obj.PageSize = 10; } NotificationListBusinessService objBS = new NotificationListBusinessService(); return(Ok(objBS.GetStakeholderMailSentResponse(obj))); }