Changeset e42f61a for Farmatiko/Controllers/HealthFacilitiesController.cs
- Timestamp:
- 07/29/20 13:21:48 (5 years ago)
- Branches:
- master
- Children:
- de18858
- Parents:
- ef1219a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Controllers/HealthFacilitiesController.cs
ref1219a re42f61a 1 1 using FarmatikoData; 2 2 using FarmatikoData.Models; 3 using Microsoft.AspNetCore.Cors; 3 4 using Microsoft.AspNetCore.Mvc; 4 5 using System.Collections.Generic; … … 20 21 return _healthFacilitiesService.GetAll(); 21 22 } 22 [HttpGet]23 public IEnumerable<HealthFacilities> GetByName(string Name)24 {25 return _healthFacilitiesService.GetByName(Name);26 }27 28 [HttpGet]29 public IEnumerable<HealthFacilities> GetByType(string Type)30 {31 return _healthFacilitiesService.GetByType(Type);32 }33 [HttpPut]34 public void Add(HealthFacilities healthFacility)35 {36 _healthFacilitiesService.Add(healthFacility);37 }38 23 } 39 24 }
Note:
See TracChangeset
for help on using the changeset viewer.