public async Task <object> UpdateUserById(Guid userId, [FromBody] UserModel userModel) { var errors = _userValidations.ValidateUserData(userModel, "updation"); if (errors != null) { return(errors); } var response = await _userLogic.UpdateUserById(userId, userModel); if (response) { return(_userValidations.UserUpdatedSuccess()); } return(_userValidations.UserIdNotFound(userId)); }