コード例 #1
0
 public ActionResult Delete(TaskSearchVM searchvm, TaskListVM listvm)
 {
     foreach (var id in listvm.Input.SelectedValues)
     {
         TaskBD.Delete(id);
     }
     return(List(searchvm, listvm));
 }
コード例 #2
0
        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));
        }