public SpecificationType ToSpecificationType(InsertSpecificationTypeRequestDto requestDto) { return(new SpecificationType() { Type = requestDto.Type, IsRequiredForCar = requestDto.IsRequiredForCar }); }
public IHttpActionResult InsertSpecificationType(InsertSpecificationTypeRequestDto requestDto) { SpecificationType specificationType = _specificationTypeMapper.ToSpecificationType(requestDto); specificationType.Id = _specificationTypeService.InsertSpecificationType(specificationType); return(Created($"specificationType/{specificationType.Id}", _specificationTypeMapper.ToDto(specificationType))); }