Exemplo n.º 1
0
        public async Task <ActionResult <PersonModel> > UpdatePerson(UpdatePersonModel request)
        {
            var uid = new Guid(HttpContext.Request.Headers[AuthorizationHeaders.PersonUid].First());
            var validationResult = _personValidation.ValidateUpdatePerson(request, uid);

            if (!validationResult.ValidationResult)
            {
                return(BadRequest(validationResult.ValidationMessage));
            }
            return(await _personLogic.UpdatePerson(request, uid));
        }