예제 #1
0
 public async Task <DomainType> Get(int id, [FromServices] IDomainTypeBusiness TypeBusiness)
 {
     return(await TypeBusiness.GetDomainType(id));
 }
예제 #2
0
 public async Task <int?> Post([FromBody] DomainType domainTypeModel, [FromServices] IDomainTypeBusiness TypeBusiness)
 {
     return(await TypeBusiness.PostDomainType(domainTypeModel));
 }
예제 #3
0
 public async Task <IEnumerable <DomainType> > Get([FromServices] IDomainTypeBusiness TypeBusiness)
 {
     return(await TypeBusiness.GetAllDomainType());
 }