public IActionResult Create() { return(View(new ResourceDTO { CreatedBy = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.Name) })); }
public IActionResult Create() { return(View(new PatientResponse { CreatedBy = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.Name) })); }
public IActionResult Create() { return(View(new ScheduledNotificationEscalationRuleDTO { CreatedBy = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.Name) })); }
public IActionResult Create() { return(View(new TransmissionClassificationDTO { CreatedBy = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.Name) })); }
public IActionResult Create() { return(View(new DistrictResponse { CreatedBy = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.Name), RegionId = _regionId, RegionName = _regionName })); }
public IActionResult Dashboard() { var user = HttpContext.User; var name = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.Name); var fullname = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.PreferredUserName); //_cookieService.Add("UserName", "vvinkhumbo"); // _cookieService.Add("UserId", "vvin"); //_cookieService.Add("PhoneNumber", "0884776533"); //var accessToken = await HttpContext.GetTokenAsync("access_token"); return(View()); }
public IActionResult Create() { ViewBag.TeamMemberName = _teamMemberName; if (_teamMemberId == 0) { return(RedirectToAction("Index", "ResponseTeamMembers")); } return(View(new TeamMappingResponse { TeamMemberId = _teamMemberId, CreatedBy = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.Name), })); }
public async Task <IActionResult> Create() { return(View(new BulkNotificationRequestViewModel { BulkNotificationRequest = new BulkNotificationRequest { CreatedBy = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.Name), SendDate = DateTime.UtcNow, SendNow = false }, Channels = await GetNotificationChannels() })); }
public async Task <IActionResult> Create() { return(View(new ResourceAllocationResponseViewModel { ResourceAllocationResponse = new ResourceAllocationResponse { CreatedBy = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.Name), PatientStatusId = _statusId, PatientStatusName = _patientStatusName }, Resources = await GetResources() })); }
public async Task <IActionResult> Create() { return(View(new DataCenterResponseViewModel { DataCenterResponse = new DataCenterResponse { CreatedBy = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.Name), IsHealthFacility = false }, Districts = await GetDistricts(), FacilityTypes = await GetFacilityTypes() })); }
public async Task <IActionResult> Create() { return(View(new ScheduledNotificationViewModel { ScheduledNotification = new ScheduledNotificationDTO { CreatedBy = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.Name), IsActive = true, StartDate = DateTime.UtcNow.AddHours(2) }, EscalationRules = await GetEscalationRules(), NotificationTemplates = await GetNotificationTemplates(), NotificationChannels = await GetNotificationChannels() })); }
public async Task <IActionResult> Index() { string valuesFilter = "false"; string phoneNumber = AppContextHelper.GetStringValueClaim(HttpContext, JwtClaimTypes.Name);; string url = $"{PatientsApiUrl}GetByResponseTeamMember?phoneNumber={System.Web.HttpUtility.UrlEncode(phoneNumber)}&valuesFilter={valuesFilter}"; var patients = Enumerable.Empty <PatientResponse>(); var accessToken = await HttpContext.GetTokenAsync("access_token"); var response = await HttpRequestFactory.Get(accessToken, url); if (response.StatusCode == HttpStatusCode.OK) { patients = response.ContentAsType <IEnumerable <PatientResponse> >(); } else { ModelState.AddModelError("", HttpResponseHandler.Process(response)); } return(View(patients)); }