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