public async Task <String> PostBrandApplicationService(Brand brand) { var respuestaDomainService = _brandDomainService.PostBrandDomainService(brand); bool hayErrorEnElDomainService = respuestaDomainService != null; if (hayErrorEnElDomainService) { return(respuestaDomainService); } _baseDatos.Brands.Add(brand); await _baseDatos.SaveChangesAsync(); return(null); }
public async Task <String> PostConditionApplicationService(Condition condition) { var respuestaDomainService = _conditionDomainService.PostConditionDomainService(condition); bool hayErrorEnElDomainService = respuestaDomainService != null; if (hayErrorEnElDomainService) { return(respuestaDomainService); } _baseDatos.Conditions.Add(condition); await _baseDatos.SaveChangesAsync(); return(null); }
public async Task <String> PostPhotoApplicationService(Photo photo) { var respuestaDomainService = _photoDomainService.PostPhotoDomainService(photo); bool hayErrorEnElDomainService = respuestaDomainService != null; if (hayErrorEnElDomainService) { return(respuestaDomainService); } _baseDatos.Photos.Add(photo); await _baseDatos.SaveChangesAsync(); return(null); }
public async Task <String> PostSellerApplicationService(Seller seller) { var respuestaDomainService = _sellerDomainService.PostSellerDomainService(seller); bool hayErrorEnElDomainService = respuestaDomainService != null; if (hayErrorEnElDomainService) { return(respuestaDomainService); } _baseDatos.Sellers.Add(seller); await _baseDatos.SaveChangesAsync(); return(null); }
public async Task <String> PostStatusApplicationService(Status status) { var respuestaDomainService = _statusDomainService.PostStatusDomainService(status); bool hayErrorEnElDomainService = respuestaDomainService != null; if (hayErrorEnElDomainService) { return(respuestaDomainService); } _baseDatos.Statuses.Add(status); await _baseDatos.SaveChangesAsync(); return(null); }
public async Task <String> PostModelApplicationService(Model model) { Purchase purchase = await DBCall(model); var responseDomainService = _modelDomainService.PostModelDomainService(purchase); bool errorInTheDomainService = responseDomainService != null; if (errorInTheDomainService) { return(responseDomainService); } _dataBase.Models.Add(model); await _dataBase.SaveChangesAsync(); return(null); }
public async Task <String> PostCarApplicationService(Car car) { Purchase purchase = await DBCall(car); var responseDomainService = _carDomainService.PostCarDomainService(purchase); bool anErrorOnTheDomainService = responseDomainService != null; if (anErrorOnTheDomainService) { return(responseDomainService); } _dataBase.Cars.Add(car); await _dataBase.SaveChangesAsync(); return(null); }