public virtual void Update(MessageBO message)
 {
     if (message == null)
     {
         throw new ArgumentNullException("message", "Message is null");
     }
     else
     {
         db.messageRepository.Edit(message);
         unitofWork.Commit();
     }
 }
 public virtual void Delete(MessageBO message, bool purge = false)
 {
     if (purge)
     {
         db.messageRepository.Delete(message);
         unitofWork.Commit();
     }
     else
     {
         message.Audit.RecordState = Entity.Enums.RecordStateType.InActive;
         Update(message);
     }
 }
        public async Task <IActionResult> LogInfoMessage([FromBody] MessageBO message)
        {
            await _logHelper.LogActionAndDisposeContext(LogTypes.ClientInfo, message.Message);

            return(new CustomActionResult((int)HttpStatusCode.OK, null));
        }