Ignore:
Timestamp:
01/26/21 10:33:09 (23 months ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
7d80751
Parents:
8e74e2f
Message:

Fix bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Controllers/PharmacyHeadController.cs

    r8e74e2f rdb484c9  
    11using System.Collections.Generic;
    22using System.Threading.Tasks;
     3using FarmatikoData.DTOs;
    34using FarmatikoData.Models;
    45using FarmatikoServices.FarmatikoServiceInterfaces;
     
    1920
    2021        //GET
    21         /*
    22         [HttpGet]
    23         [Route("api/pharmacyhead")]
    24         public async Task<IEnumerable<PharmacyHead>> GetPharmacyHeadInfo()
    25         {
    26             var PHeads = await _PHService.GetPharmacyHeadInfo();
    27             return PHeads;
    28         }*/
    29 
     22       
    3023        [HttpGet]
    3124        [Route("api/pharmacyhead/{Id}")]
     
    3629        }
    3730        //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                 }*/
    46 
    47         /*[HttpPost]
    48         [Route("api/pharmacyhead/login")]
    49         public async Task<int> Login([FromBody]PharmacyHead pharmacyHead)
    50         {
    51             return await _PHService.Login(pharmacyHead);
    52         }*/
     31       
    5332        [HttpPut]
    5433        [Route("api/pharmacyhead/update")]
    55         public async Task UpdatePharmacyHead([FromBody] PharmacyHead pharmacyHead)
     34        public async Task<IActionResult> UpdatePharmacyHead([FromBody] PharmacyHeadDto pharmacyHead)
    5635        {
    5736            await _PHService.UpdatePharmacyHead(pharmacyHead);
     37            return Ok();
    5838        }
    5939        [HttpPost]
Note: See TracChangeset for help on using the changeset viewer.