Ignore:
Timestamp:
07/29/20 13:21:48 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
de18858
Parents:
ef1219a
Message:

Add more services

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Controllers/HealthFacilitiesController.cs

    ref1219a re42f61a  
    11using FarmatikoData;
    22using FarmatikoData.Models;
     3using Microsoft.AspNetCore.Cors;
    34using Microsoft.AspNetCore.Mvc;
    45using System.Collections.Generic;
     
    2021            return _healthFacilitiesService.GetAll();
    2122        }
    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         }
    3823    }
    3924}
Note: See TracChangeset for help on using the changeset viewer.