public ActionResult GetCustomersListFilter(bool IsBlocked, string DateRange) { try { SuperAdminDAL DAL = new SuperAdminDAL(); SuperAdminViewModel viewModel = new SuperAdminViewModel(); string RequestStatus = "Filtered"; //DateTime? DateStart = null; //DateTime? DateEnd = null; string DateStart = null; string DateEnd = null; if (DateRange != "") { string[] DateFromTo = DateRange.Split('-'); DateStart = DateFromTo[0]; DateEnd = DateFromTo[1]; } viewModel.GetAllUsers = DAL.GetUsersList(RequestStatus, null, true, IsBlocked, DateStart, DateEnd); return(PartialView("_ManageGetCustomerList", viewModel)); } catch (Exception ex) { throw; } }
public ActionResult GetCustomersList() { try { SuperAdminDAL DAL = new SuperAdminDAL(); SuperAdminViewModel viewModel = new SuperAdminViewModel(); string RequestStatus = "All"; viewModel.GetAllUsers = DAL.GetUsersList(RequestStatus, null, true, false, null, null); return(View(viewModel)); } catch (Exception ex) { throw; } }