public async Task <WasherDTO> Update(WasherDTO model) { var pureModel = ConvertToPureModel(model); var updatedModel = await _repository.Update(pureModel); return(await ConvertToDTO(updatedModel)); }
public async Task <WasherDTO> Insert(WasherDTO model) { var pureModel = ConvertToPureModel(model); var insertedModel = await _repository.Insert(pureModel); return(await ConvertToDTO(insertedModel)); }
public Washer ConvertToPureModel(WasherDTO dto) { var pureModel = _mapper.Map <WasherDTO, Washer>(dto); return(pureModel); }