Beispiel #1
0
        public ResultModel UpdateGroup(UpdateGroupRequestModel param)
        {
            ResultModel result = new ResultModel();

            try
            {
                int?memberId = IdentityHelper.GetMemberId();
                if (!memberId.HasValue)
                {
                    throw new OrgException("Invalid MemberId");
                }

                GroupBL bl = new GroupBL();

                bl.UpdateGroup(memberId.Value, param);

                result.Status  = true;
                result.Message = "Group updated";
            }
            catch (OrgException oex)
            {
                result.Status  = false;
                result.Message = oex.Message;
            }
            catch (Exception ex)
            {
                result.Status  = false;
                result.Message = AppConfigs.InternalErrorMessage;

                if (AppConfigs.DebugInternalMessage)
                {
                    result.InternalMessage = ex.Message;
                }
            }

            return(result);
        }
 public void UpdateGroup([FromBody] Group group)
 {
     GroupBL.UpdateGroup(group);
 }