aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers/RoleController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DevHive.Web/Controllers/RoleController.cs')
-rw-r--r--src/DevHive.Web/Controllers/RoleController.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/DevHive.Web/Controllers/RoleController.cs b/src/DevHive.Web/Controllers/RoleController.cs
new file mode 100644
index 0000000..fda8bb2
--- /dev/null
+++ b/src/DevHive.Web/Controllers/RoleController.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Threading.Tasks;
+using DevHive.Data.Repositories;
+using DevHive.Services.Services;
+using Microsoft.AspNetCore.Mvc;
+
+namespace DevHive.Web.Controllers
+{
+ [ApiController]
+ [Route("/api/[controller]")]
+ public class RoleController
+ {
+ private readonly RoleService _service;
+
+ public RoleController(DevHiveContext context)
+ {
+ //this._service = new RoleService(context);
+ }
+
+ [HttpPost]
+ public Task<IActionResult> Create(string name)
+ {
+ //return this._service.CreatePost(name);
+ throw new NotImplementedException();
+ }
+
+ [HttpGet]
+ public Task<IActionResult> ShowPost(uint postId)
+ {
+ //return this._service.GetPostById(postId);
+ throw new NotImplementedException();
+ }
+ }
+}