public async Task <object> AddUser([FromBody] UserModel userModel) { var errors = _userValidations.ValidateUserData(userModel, "insertion"); if (errors != null) { return(errors); } var response = await _userLogic.AddUser(userModel); if (response) { return(_userValidations.UserAddedSuccess()); } return(_userValidations.UserAddedFailed()); }