public async Task <ActionResult> Edit([Bind(Include = "Id,CompanyBusinessDailyId,PhotoUrl,PhotoName")] CompanyBusinessDailyPhoto companyBusinessDailyPhoto) { if (ModelState.IsValid) { db.Entry(companyBusinessDailyPhoto).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(companyBusinessDailyPhoto)); }
public async Task <ActionResult> Edit([Bind(Include = "id,agentDomain,agentName,promotion,agentManager,totalTicketNum,totalTicket,passRate,less60minRate,orderAlterRate,voluntaryRate,involuntaryRate,complainRate,qapassRate,phoneAnswerRate,messageTimeoutRate,qualification,whiteList,totalScore,status,statDate,statMonth,grade,CurDateTicketCount,CreateTime")] AgentGradeOperation agentGradeOperation) { if (ModelState.IsValid) { db.Entry(agentGradeOperation).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(agentGradeOperation)); }
public async Task <ActionResult> Edit([Bind(Include = "Id,CompanySalesDailyId,ParamName,SubParamItem,ItemAmount")] CompanySalesDailyParam companySalesDailyParam) { if (ModelState.IsValid) { db.Entry(companySalesDailyParam).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(companySalesDailyParam)); }
public async Task <ActionResult> Edit(OtaSalesReport otaSalesReport) { if (ModelState.IsValid) { db.Entry(otaSalesReport).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(otaSalesReport)); }
public async Task <ActionResult> Edit(OtaCompany otaCompany) { if (ModelState.IsValid) { db.Entry(otaCompany).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Details", new { id = otaCompany.Id })); } return(View(otaCompany)); }
public async Task <ActionResult> Edit([Bind(Include = "Id,OuterKeyId,MediaFor,MediaName,MediaUrl")] CompanyMedia companyMedia) { if (ModelState.IsValid) { db.Entry(companyMedia).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(companyMedia)); }
public async Task <ActionResult> Edit([Bind(Include = "ID,ProvinceName,CityName")] ChinaCity chinaCity) { if (ModelState.IsValid) { db.Entry(chinaCity).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(chinaCity)); }
public async Task <ActionResult> Edit([Bind(Include = "Id,ParamName,SubItemName")] ParamDict paramDict) { if (ModelState.IsValid) { db.Entry(paramDict).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(paramDict)); }
public async Task <ActionResult> Edit([Bind(Include = "Id,CompanyId,CertificateName,CompanyName,PictureUrl,CreateTime,CreateUserName")] CompanyCertificate companyCertificate) { if (ModelState.IsValid) { db.Entry(companyCertificate).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(companyCertificate)); }
public async Task <ActionResult> Edit([Bind(Include = "ID,UserName,ServeAreaName")] ServeArea serveArea) { if (ModelState.IsValid) { db.Entry(serveArea).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(serveArea)); }
public async Task <ActionResult> Edit([Bind(Include = "Id,CompanyMeetingId,Subject,Problem,Resolve,CreateTime,ResolveTime")] CompanyMeetingSubject companyMeetingSubject) { if (ModelState.IsValid) { db.Entry(companyMeetingSubject).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(companyMeetingSubject)); }
public async Task <ActionResult> Edit([Bind(Include = "Id,CompanySalesDailyId,SaleSource,EmployeeCount,TicketCount,EmployeePayment")] CompanySalesDailySalesSource companySalesDailySalesSource) { if (ModelState.IsValid) { db.Entry(companySalesDailySalesSource).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(companySalesDailySalesSource)); }
public async Task <ActionResult> Edit([Bind(Include = "Id,CompanySalesDailyId,SalesSource,FreezeFund,WorkingFund,NeededFund")] CompanySalesDailyFund companySalesDailyFund) { if (ModelState.IsValid) { db.Entry(companySalesDailyFund).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(companySalesDailyFund)); }
public async Task <ActionResult> Edit([Bind(Include = "Id,CompanySalesDailyId,SalesSource,SalesProduct,SalesCount")] CompanySalesDailyProductDesp companySalesDailyProductDesp) { if (ModelState.IsValid) { db.Entry(companySalesDailyProductDesp).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(companySalesDailyProductDesp)); }