public Message CreateChatUser(ChatUser chatUser) { var message = new Message(); try { var result = _iChatUserRepository.CreateUser(chatUser); if (result > 0) { message = Message.SetMessages.SetSuccessMessage("User Created Successfully"); } else { message = Message.SetMessages.SetErrorMessage("User Creation Failled"); } } catch (Exception ex) { message = Message.SetMessages.SetInformationMessage(ex.Message); } return(message); }