Advertisement
Guest User

MainController.cs

a guest
Aug 26th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 KB | None | 0 0
  1. using IoT_REST.Models;
  2. using IoT_REST.Repositories;
  3. using IoT_REST.Repositories.Interfaces;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Net;
  8. using System.Net.Http;
  9. using System.Web.Http;
  10. using System.Web.Http.Description;
  11.  
  12. namespace IoT_REST.Controllers
  13. {
  14.     //[RoutePrefix("api/v1/main")]
  15.     public class MainController : ApiController
  16.     {
  17.  
  18.         private readonly IMainRepository repository;
  19.  
  20.         public MainController()
  21.         {
  22.             this.repository = new MainRepository();
  23.         }
  24.  
  25.         [HttpGet]
  26.         [ResponseType(typeof(OPCUAServer))]
  27.         IHttpActionResult GetServers(int? id)
  28.         {
  29.             return Ok();
  30.         }
  31.  
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement