public ActionResult DeleteConfirmed(int id) { SalaryStructureMaster salaryStructureMaster = db.SalaryStructureMasters.Find(id); db.SalaryStructureMasters.Remove(salaryStructureMaster); db.SaveChanges(); return(RedirectToAction("Index")); }
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)); }
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)); }
// 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)); }