public ActionResult Create(GN_ReportViewModel gN_Report) { if (!ModelState.IsValid) { ErrorNotification("Kayıt Eklenemedi!"); return(RedirectToAction("Create")); } _gN_ReportService.Add(new GN_Report { //TODO:Alanlar buraya yazılacak //Örn:BrandName = brand.BrandName, }); SuccessNotification("Kayıt Eklendi."); return(RedirectToAction("GN_ReportIndex")); }
public ActionResult Create(GN_ReportViewModel report) { if (!ModelState.IsValid) { ErrorNotification("Marka Eklenemedi!"); return(RedirectToAction("Create")); } _reportService.Add(new GN_Report { ReportTitle = report.ReportTitle, ReportFilter = report.ReportFilter, ReportSql = report.ReportSql, ReportAuthorization = "SystemAdmin," + report.ReportAuthorization }); SuccessNotification("Kayıt Eklendi."); return(RedirectToAction("GN_ReportIndex")); }