示例#1
0
文件: FoodBLImpl.cs 项目: war-man/TSF
        public async Task UpdatePackagingFood(int foodId, int premisesId)
        {
            ProviderFood result = await _providerFoodRepository.FindAsync(x => x.FoodId == foodId& x.PremisesId == premisesId);

            result.IsPacked = true;
            await _providerFoodRepository.UpdateAsync(result);
        }
示例#2
0
文件: FoodBLImpl.cs 项目: war-man/TSF
        public async Task UpdateFoodTreatment(ProviderFood food, int foodId, int treatmentId, int premisesId)
        {
            ProviderFood result = await _providerFoodRepository.FindAsync(x => x.FoodId == foodId& x.PremisesId == premisesId);

            result.TreatmentId   = treatmentId;
            result.IsTreatmented = true;
            await _providerFoodRepository.UpdateAsync(result);
        }
示例#3
0
文件: FoodBLImpl.cs 项目: war-man/TSF
 public async Task <int> createProviderFood(ProviderFood newProviderFood)
 {
     return(await _providerFoodRepository.createProviderFood(newProviderFood));
 }