Changeset 1db5673 for Farmatiko/Controllers/PharmacyHeadController.cs
- Timestamp:
- 11/14/20 12:27:30 (4 years ago)
- Branches:
- master
- Children:
- 68454c6
- Parents:
- ad60966
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Controllers/PharmacyHeadController.cs
rad60966 r1db5673 19 19 20 20 //GET 21 /*[HttpGet] 21 /* 22 [HttpGet] 22 23 [Route("api/pharmacyhead")] 23 24 public async Task<IEnumerable<PharmacyHead>> GetPharmacyHeadInfo() … … 26 27 return PHeads; 27 28 }*/ 29 28 30 [HttpGet] 29 31 [Route("api/pharmacyhead/{Id}")] … … 34 36 } 35 37 //POST 38 /* 36 39 [HttpPost] 37 40 [Route("api/pharmacyhead/add")] … … 40 43 bool Success = await _PHService.Add(pharmacyHead); 41 44 return Ok(Success); 42 } 45 }*/ 43 46 44 47 /*[HttpPost] … … 49 52 }*/ 50 53 [HttpPut] 51 [Route("api/pharmacyhead/{Id}")] 54 [Route("api/pharmacyhead")] 55 [Authorize(Roles = "Admin")] 56 [Authorize(Roles = "PharmacyHead")] 52 57 public async Task UpdatePharmacyHead([FromBody]PharmacyHead pharmacyHead) 53 58 {
Note:
See TracChangeset
for help on using the changeset viewer.