Beispiel #1
0
        // GET: Employee/SalaryDetail
        public ActionResult Index()
        {
            SalaryDetailBLL objSalaryDetailBLL = new SalaryDetailBLL();
            var             salaryDetailList   = objSalaryDetailBLL.GetSalaryDetails();

            return(View(salaryDetailList));
        }
Beispiel #2
0
        public ActionResult Edit(SalaryDetail objSalaryDetail)
        {
            if (ModelState.IsValid)
            {
                SalaryDetailBLL objSalaryDetailBLL = new SalaryDetailBLL();

                objSalaryDetailBLL.UpdateSalaryDetail(objSalaryDetail);
            }
            return(RedirectToAction("Index", "SalaryDetail"));
        }
Beispiel #3
0
        public ActionResult Edit(int id)
        {
            SalaryDetailBLL objSalaryDetailBLL = new SalaryDetailBLL();
            var             salaryDetail       = objSalaryDetailBLL.GetSalaryDetailById(id);


            ViewBag.EmployeeInfo = objSalaryDetailBLL.GetEmployeeDetailName();

            return(View(salaryDetail));
        }
Beispiel #4
0
        public ActionResult Save()
        {
            SalaryDetailBLL objSalaryDetailBLL = new SalaryDetailBLL();
            var             model = new SalaryDetail
            {
                EmployeeInfo = objSalaryDetailBLL.GetEmployeeDetailName()
            };

            return(View(model));
        }
Beispiel #5
0
        public JsonResult DesignationAndTotalSalaryById(int?EmployeeId)
        {
            SalaryDetailBLL objSalaryDetailBLL = new SalaryDetailBLL();

            if (EmployeeId != null)
            {
                SalaryDetail salaryDetail = objSalaryDetailBLL.GetDesignationAndTotalSalaryById(EmployeeId);
                return(Json(salaryDetail, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(JsonRequestBehavior.AllowGet));
            }
        }