public async Task CreatePlanMaterial(PlanMaterial planMaterial) { using (var planMaterialDao = new PlanMaterialDao()) { await planMaterialDao.CreateAsync(planMaterial); } }
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); }