예제 #1
0
        public async Task <IActionResult> UpdateUserProfile([FromRoute] int locationId, UpdateNameEmailDto update)
        {
            var ret = await _repository.UpdateUserAccountAsync(locationId, User.Claims, update);

            if (ret == null)
            {
                return(BadRequest());
            }
            return(Ok(ret));
        }