public ActionResult Update(tblDepartment department) { if (ModelState.IsValid) { db.Entry(department).State = EntityState.Modified; db.SaveChanges(); } return(Json(department, JsonRequestBehavior.AllowGet)); }
public ActionResult Update(tblSection section) { if (ModelState.IsValid) { db.Entry(section).State = EntityState.Modified; db.SaveChanges(); } return(Json(section, JsonRequestBehavior.AllowGet)); }
public ActionResult Update(tblEmployeeType employeeType) { if (ModelState.IsValid) { db.Entry(employeeType).State = EntityState.Modified; db.SaveChanges(); } return(Json(employeeType, JsonRequestBehavior.AllowGet)); }
public ActionResult Edit([Bind(Include = "DivCode,Division")] tblDivision tblDivision) { if (ModelState.IsValid) { db.Entry(tblDivision).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tblDivision)); }
public ActionResult Edit([Bind(Include = "EmpCode,AttDate,InHour,InMinute,OutHour,OutMinute,AttStatus,TotalRegularHour,Remarks")] tblAttendence tblAttendence) { if (ModelState.IsValid) { db.Entry(tblAttendence).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.EmpCode = new SelectList(db.tblEmployees, "EmpCode", "EmpName", tblAttendence.EmpCode); return(View(tblAttendence)); }
public ActionResult Edit([Bind(Include = "TRCode,TRDate,OldDeptCode,NewDeptCode,OldDesignationCode,NewDesigtnationCode,OldSecCode,NewSecCode,OldDivCode,NewDivCode,TrActivateDate,EmpCode,StateStatus,Remarks,EmpName")] tbleTransferInfo tbleTransferInfo) { if (ModelState.IsValid) { db.Entry(tbleTransferInfo).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.EmpCode = new SelectList(db.tblEmployees, "EmpCode", "EmpName", tbleTransferInfo.EmpCode); return(View(tbleTransferInfo)); }
public ActionResult Edit([Bind(Include = "BenefitCode,EmpCode,BenefitAmount,BenefitDate,BenefitType,PreviousNetSalary,NewNetSalary,Gross,Basic,HouseRent,Medical,ConvenceAll,CashIntensive,launceAllowance,otherAllowance,StateStatus,BenifitActiveDate,Remarks")] tblBenefit tblBenefit) { if (ModelState.IsValid) { db.Entry(tblBenefit).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.EmpCode = new SelectList(db.tblEmployees, "EmpCode", "EmpName", tblBenefit.EmpCode); return(View(tblBenefit)); }
public ActionResult Edit([Bind(Include = "DesigCode,Designation,DeptCode")] tblDesignation tblDesignation) { if (ModelState.IsValid) { db.Entry(tblDesignation).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.DeptCode = new SelectList(db.tblDepartments, "DeptCode", "DepartmentName", tblDesignation.DeptCode); return(View(tblDesignation)); }
public ActionResult Edit([Bind(Include = "EmpCode,EmpName,Address,Email,DOB,FatherName,MotherName,ContactNo,Gender,Nationality,Religion,NID,JoiningDate,DeptCode,DesigCode,SecCode,DivCode,EmpTypeCode,CurrentSalary,AccNo,BankName")] tblEmployee tblEmployee) { if (ModelState.IsValid) { db.Entry(tblEmployee).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.DeptCode = new SelectList(db.tblDepartments, "DeptCode", "DepartmentName", tblEmployee.DeptCode); ViewBag.DesigCode = new SelectList(db.tblDesignations, "DesigCode", "Designation", tblEmployee.DesigCode); ViewBag.DivCode = new SelectList(db.tblDivisions, "DivCode", "Division", tblEmployee.DivCode); ViewBag.EmpTypeCode = new SelectList(db.tblEmployeeTypes, "EmpTypecode", "EmpType", tblEmployee.EmpTypeCode); ViewBag.SecCode = new SelectList(db.tblSections, "SecCode", "SectionName", tblEmployee.SecCode); return(View(tblEmployee)); }