public IHttpActionResult LoadDDLs() { var employeementTypes = _employeementTypeService.GetForDDL(); var groupCategories = _groupCategoryService.GetForDDL(); var workUnits = _workUnitService.GetForDDL(); var positions = new List <PositionDDLDto>(); if (workUnits.Count > 0) { positions.AddRange(_positionService.GetForDDL(workUnits.First().Id)); } var approvalProcs = _approvalProcService.GetForDDL(null); //default dismissals already added for all personnel var dismissals = _dismissalService.GetForDDL(DismissalSystemTypeAccess.Customized); var duties = _dutyService.GetForDDL(); return(Ok(new { employeementTypes, groupCategories, workUnits, positions, approvalProcs, dismissals, duties })); }
public IHttpActionResult GetForDDL() { var workUnits = _workUnitService.GetForDDL(); return(Ok(workUnits)); }