Beispiel #1
0
 public ActionResult Delete(MemberNoteSearchVM searchvm, MemberNoteListVM listvm)
 {
     foreach (var id in listvm.Input.SelectedValues)
     {
         MemberNoteBD.Delete(id);
     }
     return(List(searchvm, listvm));
 }
Beispiel #2
0
        public ActionResult List(MemberNoteSearchVM searchvm, MemberNoteListVM listvm)
        {
            if (!ModelState.IsValid)
            {
                return(ClientShowMessage());
            }
            var filter = BuildFilter(searchvm.Input);

            if (filter != null)
            {
                listvm.ResultList = MemberNoteBD.GetDtoList <MemberNoteListVM.ListRow>(listvm.Input.Pager,
                                                                                       filter,
                                                                                       listvm.Input.OrderExpression);
            }
            return(ForView("List", listvm));
        }