public ActionResult Delete(TaskSearchVM searchvm, TaskListVM listvm) { foreach (var id in listvm.Input.SelectedValues) { TaskBD.Delete(id); } return(List(searchvm, listvm)); }
public ActionResult List(TaskSearchVM searchvm, TaskListVM listvm) { if (!ModelState.IsValid) { return(ClientShowMessage()); } var filter = BuildFilter(searchvm.Input); if (filter != null) { listvm.ResultList = TaskBD.GetDtoList <TaskListVM.ListRow>(listvm.Input.Pager, filter, listvm.Input.OrderExpression); } return(ForView("List", listvm)); }