public ResultModel UpdateOfflineMessage(MessageOfflineUpdateRequestModel param) { ResultModel result = new ResultModel(); try { int?memberId = IdentityHelper.GetMemberId(); if (!memberId.HasValue) { throw new OrgException("Invalid MemberId"); } MessageBL bl = new MessageBL(); bl.UpdateOfflineMessage(param); result.Status = true; result.Message = "Offline message is 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); }