示例#1
0
        public ActionResult Add(AddReportViewModel model)
        {
            if(!ModelState.IsValid)
                return View(model);

            model.Save();
            return RedirectToAction("Edit", new { id = model.id });
        }
示例#2
0
 public ActionResult Add()
 {
     AddReportViewModel model = new AddReportViewModel() { AspNetUserID = User.Identity.GetUserId() };
     return View(model);
 }