Ejemplo n.º 1
0
        public async Task <ActionResult <List <PersonModel> > > GetPersonListByPage(GetPersonListFilter request)
        {
            var uid = new Guid(HttpContext.Request.Headers[AuthorizationHeaders.PersonUid].First());
            var validationResult = _personValidation.ValidateGetPersonListByPage(request);

            if (!validationResult.ValidationResult)
            {
                return(BadRequest(validationResult.ValidationMessage));
            }
            var models = await _personLogic.GetPersonListByPage(uid, request);

            return(models.ToList());
        }