Exemplo n.º 1
0
        public IHttpActionResult UpdateSpecificationType(UpdateSpecificationTypeRequestDto requestDto)
        {
            SpecificationType specificationType = _specificationTypeMapper.ToSpecificationType(requestDto);

            _specificationTypeService.UpdateSpecificationType(specificationType);
            return(new StatusCodeResult(HttpStatusCode.NoContent, this));
        }
Exemplo n.º 2
0
 public SpecificationType ToSpecificationType(UpdateSpecificationTypeRequestDto requestDto)
 {
     return(new SpecificationType()
     {
         Id = requestDto.Id,
         Type = requestDto.Type,
         IsRequiredForCar = requestDto.IsRequiredForCar
     });
 }