Example #1
0
 public ActionResult Search()
 {
     return(ForView(new UserSearchVM()
     {
         Depts = DeptBD.GetRefList(o => o.Corp.Id == GetLoginCorpId())
     }));
 }
Example #2
0
        protected override void OnViewExecuting(object viewModel)
        {
            var l = DeptBD.GetRefList(o => o.Corp.Id == GetLoginCorpId());

            SetViewModel <UserEditVM>(m => m.Depts   = l);
            SetViewModel <UserSearchVM>(m => m.Depts = l);
        }