Ignore:
Timestamp:
11/15/20 19:08:48 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
8b13eb2
Parents:
1db5673
Message:

fix bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Controllers/PharmacyHeadController.cs

    r1db5673 r68454c6  
    99{
    1010    [ApiController]
    11     [Authorize(Roles = "PharmacyHead")]
     11    [Authorize(Roles = "PharmacyHead,Admin")]
    1212    public class PharmacyHeadController : Controller
    1313    {
     
    3636        }
    3737        //POST
    38         /*
     38/*
    3939        [HttpPost]
    4040        [Route("api/pharmacyhead/add")]
    41         public async Task<IActionResult> AddPharmacyHead([FromBody]PharmacyHead pharmacyHead)
     41        public async Task<IActionResult> AddPharmacyHead([FromBody] PharmacyHead pharmacyHead)
    4242        {
    4343            bool Success = await _PHService.Add(pharmacyHead);
     
    5252        }*/
    5353        [HttpPut]
    54         [Route("api/pharmacyhead")]
    55         [Authorize(Roles = "Admin")]
    56         [Authorize(Roles = "PharmacyHead")]
     54        [Route("api/pharmacyhead/update")]
    5755        public async Task UpdatePharmacyHead([FromBody]PharmacyHead pharmacyHead)
    5856        {
Note: See TracChangeset for help on using the changeset viewer.