예제 #1
0
        public ActionResult GetChatPartial(int groupid)
        {
            string msg;

            try
            {
                var model = _secretSantaBl.GroupChatDisplayModelByGroupId(groupid);
                return(PartialView("_GroupChat", model));
            }
            catch (AppException ax)
            {
                msg = ax.Message;
            }
            catch (Exception)
            {
                msg = "An Error Has Occured";
            }
            return(PartialView("_ErrorMessage", new StringModel(msg)));
        }