public override async Task <AutoDto> InsertAuto(AutoDto request, ServerCallContext context) { var auto = request.ConvertToEntity(); var response = await autoManager.AddAuto(auto); return(response.ConvertToDto()); }
public void InsertAuto(AutoDto newAuto) { WriteActualMethod(); _autoManager.AddAuto(newAuto.ConvertToEntity()); }