Example #1
0
        public IHttpActionResult CARRResponseStatusForAA()
        {
            var  list   = new List <EnumViewModel>().AsEnumerable();
            Guid roleId = User != null && User.Identity != null && User.Identity.GetUserLoginInfo() != null?User.Identity.GetUserLoginInfo().RoleId : Guid.Empty;

            if (roleId == new Guid(ApplicationConstants.AreaAdministratorRoleId) || roleId == new Guid(ApplicationConstants.AssistantAreaAdministratorRoleId))
            {
                list = EnumModel <CARRResponseStatus> .List();
            }
            return(Ok(list));
        }
Example #2
0
 public IHttpActionResult ListIncidentStatus()
 {
     return(Ok(EnumModel <IncidentStatus> .List()));
 }
Example #3
0
 public IHttpActionResult ListComponentType()
 {
     return(Ok(EnumModel <ComponentType> .List()));
 }
Example #4
0
 public IHttpActionResult ListAuditStatus()
 {
     return(Ok(EnumModel <AuditStatus> .List()));
 }
Example #5
0
 public IHttpActionResult ListAlarmTestingStatus()
 {
     return(Ok(EnumModel <AlarmTestingStatus> .List()));
 }
Example #6
0
 public IHttpActionResult ListGuardType()
 {
     return(Ok(EnumModel <GuardType> .List()));
 }
Example #7
0
 public IHttpActionResult ListStorageLocationType()
 {
     return(Ok(EnumModel <StorageLocationType> .List()));
 }
Example #8
0
 public IHttpActionResult ListDocumentProcessorType()
 {
     return(Ok(EnumModel <DocumentProcessorType> .List()));
 }
Example #9
0
 public IHttpActionResult ListAssessmentType()
 {
     return(Ok(EnumModel <AssessmentType> .List()));
 }
Example #10
0
 public IHttpActionResult ListMonth()
 {
     return(Ok(EnumModel <Month> .List()));
 }
Example #11
0
 public IHttpActionResult ListCARRStatus()
 {
     return(Ok(EnumModel <CARRStatus> .List()));
 }
Example #12
0
 public IHttpActionResult ListParttimerType()
 {
     return(Ok(EnumModel <ParttimerType> .List()));
 }
Example #13
0
 public IHttpActionResult ListSalaryType()
 {
     return(Ok(EnumModel <SalaryType> .List()));
 }
Example #14
0
 public IHttpActionResult ListInsuranceType()
 {
     return(Ok(EnumModel <InsuranceType> .List()));
 }
Example #15
0
 public IHttpActionResult ListReportingType()
 {
     return(Ok(EnumModel <ReportingType> .List().Take(2)));
 }
Example #16
0
 public IHttpActionResult ListProcessingStatus()
 {
     return(Ok(EnumModel <ProcessingStatus> .List()));
 }
Example #17
0
 public IHttpActionResult ListAssessmentStatus()
 {
     return(Ok(EnumModel <AssessmentStatus> .List()));
 }
Example #18
0
 public IHttpActionResult ListCategoryType()
 {
     return(Ok(EnumModel <CategoryType> .List()));
 }
Example #19
0
 public IHttpActionResult ListAnnualReportType()
 {
     return(Ok(EnumModel <AnnualReportType> .List()));
 }
Example #20
0
 public IHttpActionResult ListCancellationType()
 {
     return(Ok(EnumModel <CancellationType> .List()));
 }
Example #21
0
 public IHttpActionResult ListBranchIncidentType()
 {
     return(Ok(EnumModel <BranchIncidentType> .List()));
 }
Example #22
0
 public IHttpActionResult ListTestType()
 {
     return(Ok(EnumModel <TestType> .List()));
 }
Example #23
0
 public IHttpActionResult ListSimTelco()
 {
     return(Ok(EnumModel <SimTelco> .List()));
 }
Example #24
0
 public IHttpActionResult ListTestingTroubleShootingStatus()
 {
     return(Ok(EnumModel <TestingTroubleShootingStatus> .List()));
 }
Example #25
0
 public IHttpActionResult ListBand()
 {
     return(Ok(EnumModel <Band> .List()));
 }
Example #26
0
 public IHttpActionResult ListUrgencyType()
 {
     return(Ok(EnumModel <UrgencyType> .List()));
 }
Example #27
0
 public IHttpActionResult ListDayPart()
 {
     return(Ok(EnumModel <DayPart> .List()));
 }