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