public async Task <int> UpdateAsync(int id, FinishingPrintingCostCalculationModel model) { finishingPrintingCostCalculationLogic.UpdateAsync(id, model); if (!string.IsNullOrWhiteSpace(model.ImageFile)) { model.ImagePath = await this.AzureImageFacade.UploadImage(model.GetType().Name, model.Id, model.CreatedUtc, model.ImageFile); } return(await DbContext.SaveChangesAsync()); }
public async Task <int> UpdateAsync(int id, FinishingPrintingCostCalculationModel model) { finishingPrintingCostCalculationLogic.UpdateAsync(id, model); return(await DbContext.SaveChangesAsync()); }