Exemple #1
0
        public override async Task <AutoDto> InsertAuto(AutoDto request, ServerCallContext context)
        {
            var auto     = request.ConvertToEntity();
            var response = await autoManager.AddAuto(auto);

            return(response.ConvertToDto());
        }
Exemple #2
0
 public void InsertAuto(AutoDto newAuto)
 {
     WriteActualMethod();
     _autoManager.AddAuto(newAuto.ConvertToEntity());
 }