Exemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            UMUserMaster umusermaster = db.UMUserMasters.Find(id);

            db.UMUserMasters.Remove(umusermaster);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        //
        // GET: /User/Delete/5

        public ActionResult Delete(int id = 0)
        {
            UMUserMaster umusermaster = db.UMUserMasters.Find(id);

            if (umusermaster == null)
            {
                return(HttpNotFound());
            }
            return(View(umusermaster));
        }
Exemplo n.º 3
0
 public ActionResult Edit(UMUserMaster umusermaster)
 {
     if (ModelState.IsValid)
     {
         db.Entry(umusermaster).State = EntityState.Modified;
         db.SaveChanges();
         TempData["SuccessMsg"] = "You have successfully added Country.";
         return(RedirectToAction("Index"));
     }
     return(View(umusermaster));
 }
Exemplo n.º 4
0
        public ActionResult Create(UMUserMaster umusermaster)
        {
            if (ModelState.IsValid)
            {
                db.UMUserMasters.Add(umusermaster);
                db.SaveChanges();
                TempData["SuccessMsg"] = "You have successfully added Country.";
                return(RedirectToAction("Index"));
            }

            return(View(umusermaster));
        }