Ignore:
Timestamp:
11/16/20 03:55:10 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
db484c9
Parents:
8b13eb2
Message:

Fix bugs, add some more.

Location:
Farmatiko/Controllers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Controllers/FarmatikoController.cs

    r8b13eb2 r8e74e2f  
    2424        {
    2525            //_JSONservice.DownloadPharmaciesExcel();
    26             //_JSONservice.GetProcessedHealthcareWorkersFromJSON();
     26            _JSONservice.GetProcessedHealthcareWorkersFromJSON();
    2727            //_JSONservice.GetProcessedHealthFacilitiesFromJSON();
    2828            //_JSONservice.GetProcessedMedicinesFromJSON();
    29             _JSONservice.GetProcessedPandemicsFromJSONApi();
     29            //_JSONservice.GetProcessedPandemicsFromJSONApi();
    3030        }
    3131        [HttpGet]
  • Farmatiko/Controllers/PharmacyHeadController.cs

    r8b13eb2 r8e74e2f  
    3030        [HttpGet]
    3131        [Route("api/pharmacyhead/{Id}")]
    32         public async Task<PharmacyHead> GetPharmacyHeadById([FromRoute]int Id)
     32        public async Task<PharmacyHead> GetPharmacyHeadById([FromRoute] int Id)
    3333        {
    3434            var Phead = await _PHService.GetPharmacyHeadByIdAsync(Id);
     
    3636        }
    3737        //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         }*/
     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                }*/
    4646
    4747        /*[HttpPost]
     
    4949        public async Task<int> Login([FromBody]PharmacyHead pharmacyHead)
    5050        {
    51             return await _PHService.Login(pharmacyHead);
     51            return await _PHService.Login(pharmacyHead); 
    5252        }*/
    5353        [HttpPut]
    5454        [Route("api/pharmacyhead/update")]
    55         public async Task UpdatePharmacyHead([FromBody]PharmacyHead pharmacyHead)
     55        public async Task UpdatePharmacyHead([FromBody] PharmacyHead pharmacyHead)
    5656        {
    5757            await _PHService.UpdatePharmacyHead(pharmacyHead);
     
    5959        [HttpPost]
    6060        [Route("api/pharmacyhead/requests")]
    61         public async Task<IActionResult> ClaimPharmacy([FromBody]RequestPharmacyHead pharmacy)
     61        public async Task<IActionResult> ClaimPharmacy([FromBody] RequestPharmacyHead pharmacy)
    6262        {
    6363            bool Success = await _PHService.ClaimPharmacy(pharmacy);
     
    7878            return Ok(Success);
    7979        }
    80        
     80
    8181    }
    8282}
Note: See TracChangeset for help on using the changeset viewer.