Changeset e0cdea2 for Farmatiko/Controllers
- Timestamp:
- 02/08/21 16:39:25 (4 years ago)
- Branches:
- master
- Children:
- 8eb1e21, dae4cde
- Parents:
- 0a694bb
- Location:
- Farmatiko/Controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Controllers/AdminController.cs
r0a694bb re0cdea2 61 61 [HttpPost] 62 62 [Route("api/pharmacyhead/requests/{Id}")] 63 public IActionResult RejectRequest([From Route] int Id)63 public IActionResult RejectRequest([FromBody] RequestPharmacyHead req) 64 64 { 65 bool Success = _adminService.RejectRequest( Id);65 bool Success = _adminService.RejectRequest(req); 66 66 return Ok(Success); 67 67 } -
Farmatiko/Controllers/FarmatikoController.cs
r0a694bb re0cdea2 84 84 [HttpGet] 85 85 [Route("api/medicines/search/{query}")] 86 public async Task<IEnumerable<Medicine >> SearchMedicines([FromRoute] string query)86 public async Task<IEnumerable<MedicineDTO>> SearchMedicines([FromRoute] string query) 87 87 { 88 88 return await _service.SearchMedicines(query); … … 97 97 [HttpGet] 98 98 [Route("api/pandemic")] 99 public async Task<Pandemic>GetPandemic()99 public Pandemic GetPandemic() 100 100 { 101 return await_service.GetPandemic();101 return _service.GetPandemic(); 102 102 } 103 103 //Pharmacy … … 111 111 [HttpGet] 112 112 [Route("api/pharmacy/search/{Query}")] 113 public async Task<IEnumerable<Pharmacy >> SearchPharmacies([FromRoute] string Query)113 public async Task<IEnumerable<PharmacyDTO>> SearchPharmacies([FromRoute] string Query) 114 114 { 115 115 return await _service.SearchPharmacies(Query);
Note:
See TracChangeset
for help on using the changeset viewer.