Changeset 8e74e2f for Farmatiko/Controllers
- Timestamp:
- 11/16/20 03:55:10 (4 years ago)
- Branches:
- master
- Children:
- db484c9
- Parents:
- 8b13eb2
- Location:
- Farmatiko/Controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Controllers/FarmatikoController.cs
r8b13eb2 r8e74e2f 24 24 { 25 25 //_JSONservice.DownloadPharmaciesExcel(); 26 //_JSONservice.GetProcessedHealthcareWorkersFromJSON();26 _JSONservice.GetProcessedHealthcareWorkersFromJSON(); 27 27 //_JSONservice.GetProcessedHealthFacilitiesFromJSON(); 28 28 //_JSONservice.GetProcessedMedicinesFromJSON(); 29 _JSONservice.GetProcessedPandemicsFromJSONApi();29 //_JSONservice.GetProcessedPandemicsFromJSONApi(); 30 30 } 31 31 [HttpGet] -
Farmatiko/Controllers/PharmacyHeadController.cs
r8b13eb2 r8e74e2f 30 30 [HttpGet] 31 31 [Route("api/pharmacyhead/{Id}")] 32 public async Task<PharmacyHead> GetPharmacyHeadById([FromRoute] int Id)32 public async Task<PharmacyHead> GetPharmacyHeadById([FromRoute] int Id) 33 33 { 34 34 var Phead = await _PHService.GetPharmacyHeadByIdAsync(Id); … … 36 36 } 37 37 //POST 38 /*39 [HttpPost]40 [Route("api/pharmacyhead/add")]41 public async Task<IActionResult> AddPharmacyHead([FromBody] PharmacyHead pharmacyHead)42 {43 bool Success = await _PHService.Add(pharmacyHead);44 return Ok(Success);45 }*/38 /* 39 [HttpPost] 40 [Route("api/pharmacyhead/add")] 41 public async Task<IActionResult> AddPharmacyHead([FromBody] PharmacyHead pharmacyHead) 42 { 43 bool Success = await _PHService.Add(pharmacyHead); 44 return Ok(Success); 45 }*/ 46 46 47 47 /*[HttpPost] … … 49 49 public async Task<int> Login([FromBody]PharmacyHead pharmacyHead) 50 50 { 51 return await _PHService.Login(pharmacyHead); 51 return await _PHService.Login(pharmacyHead); 52 52 }*/ 53 53 [HttpPut] 54 54 [Route("api/pharmacyhead/update")] 55 public async Task UpdatePharmacyHead([FromBody] PharmacyHead pharmacyHead)55 public async Task UpdatePharmacyHead([FromBody] PharmacyHead pharmacyHead) 56 56 { 57 57 await _PHService.UpdatePharmacyHead(pharmacyHead); … … 59 59 [HttpPost] 60 60 [Route("api/pharmacyhead/requests")] 61 public async Task<IActionResult> ClaimPharmacy([FromBody] RequestPharmacyHead pharmacy)61 public async Task<IActionResult> ClaimPharmacy([FromBody] RequestPharmacyHead pharmacy) 62 62 { 63 63 bool Success = await _PHService.ClaimPharmacy(pharmacy); … … 78 78 return Ok(Success); 79 79 } 80 80 81 81 } 82 82 }
Note:
See TracChangeset
for help on using the changeset viewer.