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/AdminController.cs

    r8e74e2f rdb484c9  
    33using System.Linq;
    44using System.Threading.Tasks;
     5using FarmatikoData.DTOs;
    56using FarmatikoData.Models;
    67using FarmatikoServices.FarmatikoServiceInterfaces;
     
    4647        {
    4748            await _service.AddPharmacyHead(pharmacyHead);
    48             return Ok();
     49            return Ok("Pharmacy added.");
    4950        }
    5051
     
    6566        [HttpPost]
    6667        [Route("api/pharmacyhead/{Id}")]
    67         public async Task<IActionResult> ApproveRequest([FromRoute]int Id, [FromBody]PharmacyHead pharmacyHead)
     68        public async Task<IActionResult> ApproveRequest([FromRoute]int Id, [FromBody]PharmacyHeadDto pharmacyHead)
    6869        {
    69             int id = Id;
    7070            await _phservice.UpdatePharmacyHead(pharmacyHead);
    7171            return Ok();
Note: See TracChangeset for help on using the changeset viewer.