Exemple #1
0
 public async Task CreatePlanMaterial(PlanMaterial planMaterial)
 {
     using (var planMaterialDao = new PlanMaterialDao())
     {
         await planMaterialDao.CreateAsync(planMaterial);
     }
 }
Exemple #2
0
        public async Task <bool> PlanMaterialEdit(PlanMaterial planMaterial)
        {
            using (var planMaterialDao = new PlanMaterialDao())
            {
                var result = await planMaterialDao.EditAsync(planMaterial);

                if (result > -1)
                {
                    return(true);
                }
            }
            return(false);
        }