public ActionResult StoriesSprintList(int projectId = 0, string searchTxt = "") { List <StoriesDetails> stories = new List <StoriesDetails>(); StoriesListModel model = new StoriesListModel(); try { stories = StoriesLogic.GetStoriesListAndItemCount(projectId, StoriesFilterSession.sprintId); model.Stories = stories; model.StoriesCount = stories.Count; if (searchTxt != "") { model.Stories = stories.Where(x => x.Name.Contains(searchTxt)).ToList(); } } catch (Exception e) { LogsLogic.InsertLog(new Log() { Message = e.Message, StackTrace = e.StackTrace, StoryName = "ManagementProject/Stories/StoriesList", Parameters = "projectId= " + projectId }); return(RedirectToAction("GeneralError", "Error", new { ErrorMessage = Error.ServerNotRespond })); } return(PartialView("StoriesSprintList", model)); }
public ActionResult StoriesList(int projectId) { List <StoriesDetails> stories = new List <StoriesDetails>(); StoriesListModel model = new StoriesListModel(); try { stories = StoriesLogic.GetFilteredStoriesList(StoriesFilterSession); model.Stories = stories; model.StoriesCount = stories.Count; } catch (Exception e) { LogsLogic.InsertLog(new Log() { Message = e.Message, StackTrace = e.StackTrace, StoryName = "ManagementProject/Stories/StoriesList", Parameters = "projectId= " + projectId }); return(RedirectToAction("GeneralError", "Error", new { ErrorMessage = Error.ServerNotRespond })); } return(PartialView("StoriesList", model)); }