Exemplo n.º 1
0
        public async Task <IResponseDTO> CreateIdentificationType([FromBody] CreateUpdateIdentificationTypeDto options)
        {
            var validationResult = _identificationTypeService.ValidateIdentificationType(options);

            if (!validationResult.IsPassed)
            {
                return(validationResult);
            }

            _response = await _identificationTypeService.CreateIdentificationType(options, LoggedInUserId);

            return(_response);
        }