Пример #1
0
 public ActionResult Delete(TaskItemSearchVM searchvm, TaskItemListVM listvm)
 {
     foreach (var id in listvm.Input.SelectedValues)
     {
         TaskItemBD.Delete(id);
     }
     return(List(searchvm, listvm));
 }
Пример #2
0
        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));
        }