示例#1
0
        //[Route("groups/group/_defaultsearchresult")]
        public ActionResult GroupHome(int id)
        {
            var msg = "";

            try
            {
                var model = _secretSantaBl.GroupHomeEditModelByGroupId(id);
                //model.InviteUsersCollection = _secretSantaBl.InviteUsersCollectionModelByAmountToGet(4);

                return(View("GroupHome", model));
            }
            catch (AppException ax)
            {
                msg = ax.Message;
            }
            catch (Exception ex)
            {
                ModelState.AddModelError("", ex.Message);
                _log.LogError(" - ", ex.Message);
            }
            return(View("_ErrorMessage", new StringModel(msg)));
            // need to make a full page error view but o well
        }