Beispiel #1
0
        public JsonResult GetEmployeeData(string employeeId)
        {
            var      model = _employeeBLL.GetByID(employeeId);
            FleetDto data  = new FleetDto();

            data = _fleetBLL.GetVehicleByEmployeeId(model.EMPLOYEE_ID);
            model.EmployeeVehicle = data;
            return(Json(model));
        }
Beispiel #2
0
        public JsonResult GetEmployee(string Id)
        {
            var      model = _employeeBLL.GetByID(Id);
            FleetDto data  = new FleetDto();

            if (CurrentUser.UserRole == Enums.UserRole.Fleet)
            {
                data = _fleetBLL.GetVehicleByEmployeeId(Id, "WTC");
                model.EmployeeVehicle = data;
                //model.
            }
            else
            {
                data = _fleetBLL.GetVehicleByEmployeeId(Id, "BENEFIT");
                model.EmployeeVehicle = data;
            }
            model.EmployeeVehicle = data;
            return(Json(model));
        }