Changeset afefe75 for Farmatiko


Ignore:
Timestamp:
02/04/21 21:46:29 (4 years ago)
Author:
Dimitar Slezenkovski <dslezenkovski@…>
Branches:
master
Children:
ac51326
Parents:
de9d697
Message:

Update searches, fix bugs

Location:
Farmatiko
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Controllers/FarmatikoController.cs

    rde9d697 rafefe75  
    11using System.Collections.Generic;
    22using System.Threading.Tasks;
     3using FarmatikoData.DTOs;
    34using FarmatikoData.Models;
    45using FarmatikoServices.FarmatikoServiceInterfaces;
     
    7778        [HttpGet]
    7879        [Route("api/medicines")]
    79         public async Task<IEnumerable<Medicine>> GetMedicines()
     80        public async Task<IEnumerable<MedicineDTO>> GetMedicines()
    8081        {
    8182            return await _service.GetMedicines();
     
    104105        [HttpGet]
    105106        [Route("api/pharmacy")]
    106         public async Task<IEnumerable<Pharmacy>> GetPharmacies()
     107        public async Task<IEnumerable<PharmacyDTO>> GetPharmacies()
    107108        {
    108109            return await _service.GetPharmacies();
  • Farmatiko/Controllers/PharmacyHeadController.cs

    rde9d697 rafefe75  
    3030        //POST
    3131       
    32         [HttpPut]
     32        [HttpPost]
    3333        [Route("api/pharmacyhead/update")]
    3434        public async Task<IActionResult> UpdatePharmacyHead([FromBody] PharmacyHeadDto pharmacyHead)
  • Farmatiko/Startup.cs

    rde9d697 rafefe75  
    1818using FarmatikoServices.Infrastructure;
    1919using System;
    20 using Newtonsoft.Json.Serialization;
    2120namespace Farmatiko
    2221{
Note: See TracChangeset for help on using the changeset viewer.