public Task <int> UpdateBSECompanyAsync(BSECompany bSECompany) { var original = _dbContext.BSECompanies.Find(bSECompany.CompanyID); _dbContext.Entry(original).CurrentValues.SetValues(bSECompany); return(_dbContext.SaveChangesAsync()); }
public Task <int> InsertBSECompanyAsync(BSECompany bSECompany) { _dbContext.BSECompanies.Add(bSECompany); return(_dbContext.SaveChangesAsync()); }
public async Task <ActionResult> Edit(BSECompany model) { var t = await _iBSECompanyManager.UpdateBSECompanyAsync(model); return(View()); }
public ActionResult Create(BSECompany model) { var t = _iBSECompanyManager.InsertBSECompanyAsync(model); return(View()); }
public async Task <int> UpdateBSECompanyAsync(BSECompany bSECompany) { return(await _iBSECompanyRepository.UpdateBSECompanyAsync(bSECompany)); }
public async Task <int> InsertBSECompanyAsync(BSECompany bSECompany) { return(await _iBSECompanyRepository.InsertBSECompanyAsync(bSECompany)); }