Ignore:
Timestamp:
11/14/20 12:27:30 (3 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
68454c6
Parents:
ad60966
Message:

Fix bugs, add some more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Controllers/PharmacyHeadController.cs

    rad60966 r1db5673  
    1919
    2020        //GET
    21         /*[HttpGet]
     21        /*
     22        [HttpGet]
    2223        [Route("api/pharmacyhead")]
    2324        public async Task<IEnumerable<PharmacyHead>> GetPharmacyHeadInfo()
     
    2627            return PHeads;
    2728        }*/
     29
    2830        [HttpGet]
    2931        [Route("api/pharmacyhead/{Id}")]
     
    3436        }
    3537        //POST
     38        /*
    3639        [HttpPost]
    3740        [Route("api/pharmacyhead/add")]
     
    4043            bool Success = await _PHService.Add(pharmacyHead);
    4144            return Ok(Success);
    42         }
     45        }*/
    4346
    4447        /*[HttpPost]
     
    4952        }*/
    5053        [HttpPut]
    51         [Route("api/pharmacyhead/{Id}")]
     54        [Route("api/pharmacyhead")]
     55        [Authorize(Roles = "Admin")]
     56        [Authorize(Roles = "PharmacyHead")]
    5257        public async Task UpdatePharmacyHead([FromBody]PharmacyHead pharmacyHead)
    5358        {
Note: See TracChangeset for help on using the changeset viewer.