public ActionResult Edit(GN_Report gN_Report) { try { _gN_ReportService.Update(new GN_Report { //TODO:Alanlar buraya yazılacak Id alanı en altta olacak unutmayın!!! //Örn:BrandName = brand.BrandName, //BrandId = brand.BrandId GN_ReportId = gN_Report.GN_ReportId }); SuccessNotification("Kayıt Güncellendi"); return(RedirectToAction("GN_ReportIndex")); } catch { return(View()); } }
public ActionResult Edit(GN_Report report) { try { // TODO: Add update logic here _reportService.Update(new GN_Report { ReportTitle = report.ReportTitle, ReportFilter = report.ReportFilter, ReportSql = report.ReportSql, ReportAuthorization = report.ReportAuthorization, ReportId = report.ReportId }); SuccessNotification("Kayıt Güncellendi"); return(RedirectToAction("GN_ReportIndex")); } catch { return(View()); } }