Example #1
0
 public Employee_VM SavePurchaseOrder(Employee_VM employeemaster)
 {
     if (!employeemaster.IsEditMode)
     {
         employeemaster.EmpCode = _CodeRep.GetCode(employeemaster.Cmpycode, "EmployeeMaster");
     }
     return(_EmployeeMgmtRepo.SavePurchaseOrder(employeemaster));
 }
Example #2
0
        public ActionResult SaveEmployeeMaster(Employee_VM employeemaster)
        {
            List <SessionListnew> list = Session["SesDet"] as List <SessionListnew>;

            if (list == null)
            {
                return(Redirect("Login/InLogin"));
            }
            else
            {
                employeemaster.Cmpycode = list[0].CmpyCode;
                employeemaster.UserName = list[0].user_name;
                return(Json(_employeeService.SavePurchaseOrder(employeemaster), JsonRequestBehavior.AllowGet));
            }
        }