예제 #1
0
        public ActionResult DeleteConfirmed(long id)
        {
            HRMS_EMP_GENDER_MS hRMS_EMP_GENDER_MS = db.HRMS_EMP_GENDER_MS.Find(id);

            db.HRMS_EMP_GENDER_MS.Remove(hRMS_EMP_GENDER_MS);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
예제 #2
0
 public ActionResult Edit([Bind(Include = "Gender_ID,Gender_Value")] HRMS_EMP_GENDER_MS hRMS_EMP_GENDER_MS)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hRMS_EMP_GENDER_MS).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(hRMS_EMP_GENDER_MS));
 }
예제 #3
0
        public ActionResult Create([Bind(Include = "Gender_ID,Gender_Value")] HRMS_EMP_GENDER_MS hRMS_EMP_GENDER_MS)
        {
            if (ModelState.IsValid)
            {
                db.HRMS_EMP_GENDER_MS.Add(hRMS_EMP_GENDER_MS);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(hRMS_EMP_GENDER_MS));
        }
예제 #4
0
        // GET: HRMS_EMP_GENDER_MS/Edit/5
        public ActionResult Edit(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            HRMS_EMP_GENDER_MS hRMS_EMP_GENDER_MS = db.HRMS_EMP_GENDER_MS.Find(id);

            if (hRMS_EMP_GENDER_MS == null)
            {
                return(HttpNotFound());
            }
            return(View(hRMS_EMP_GENDER_MS));
        }
예제 #5
0
        public bool delete(long id)
        {
            HRMS_EMP_GENDER_MS hRMS_EMP_GENDER_MS = db.HRMS_EMP_GENDER_MS.Find(id);

            if (hRMS_EMP_GENDER_MS != null)
            {
                db.HRMS_EMP_GENDER_MS.Remove(hRMS_EMP_GENDER_MS);
                db.SaveChanges();
                return(true);
            }
            else
            {
                return(false);
            }
        }