Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            SalaryStructureMaster salaryStructureMaster = db.SalaryStructureMasters.Find(id);

            db.SalaryStructureMasters.Remove(salaryStructureMaster);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 public ActionResult Edit([Bind(Include = "SalaryScaleId,SalaryScale,GradeLevel,Step,SalaryAmount,IsActive,IsDeleted,ScaleYear,CreatedDate")] SalaryStructureMaster salaryStructureMaster)
 {
     if (ModelState.IsValid)
     {
         db.Entry(salaryStructureMaster).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(salaryStructureMaster));
 }
Example #3
0
        public ActionResult Create([Bind(Include = "CustomerId,SalaryScaleId,SalaryScale,GradeLevel,Step,SalaryAmount,IsActive,IsDeleted,ScaleYear,CreatedDate")] SalaryStructureMaster salaryStructureMaster)
        {
            if (ModelState.IsValid)
            {
                db.SalaryStructureMasters.Add(salaryStructureMaster);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(salaryStructureMaster));
        }
Example #4
0
        // GET: SalaryStructureMasters/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SalaryStructureMaster salaryStructureMaster = db.SalaryStructureMasters.Find(id);

            if (salaryStructureMaster == null)
            {
                return(HttpNotFound());
            }
            return(View(salaryStructureMaster));
        }