Example #1
0
 public ActionResult Create(SSUserModel usrModel)
 {
     if (ModelState.IsValid) {
         DataRow row = usrModel.ToDataRow<SSUserModel>();
         userBusiness.AddNewUser(row);
         return RedirectToAction("Index");
     }
     return View();
 }
Example #2
0
 public ActionResult Edit(SSUserModel um)
 {
     if (ModelState.IsValid)
     {
         DataRow row = um.ToDataRow<SSUserModel>();
         userBusiness.EditSSUser(row);
         return  RedirectToAction("Index");
     }
     return View();
 }