diff options
Diffstat (limited to 'src/DevHive.Services')
| -rw-r--r-- | src/DevHive.Services/Models/Identity/Role/RoleServiceModel.cs | 10 | ||||
| -rw-r--r-- | src/DevHive.Services/Services/RoleService.cs | 20 |
2 files changed, 26 insertions, 4 deletions
diff --git a/src/DevHive.Services/Models/Identity/Role/RoleServiceModel.cs b/src/DevHive.Services/Models/Identity/Role/RoleServiceModel.cs new file mode 100644 index 0000000..3f834ef --- /dev/null +++ b/src/DevHive.Services/Models/Identity/Role/RoleServiceModel.cs @@ -0,0 +1,10 @@ +using System; + +namespace DevHive.Services.Models.Identity.Role +{ + public class RoleServiceModel + { + public Guid Id { get; set; } + public string Name { get; set; } + } +} diff --git a/src/DevHive.Services/Services/RoleService.cs b/src/DevHive.Services/Services/RoleService.cs index 202c611..9077a47 100644 --- a/src/DevHive.Services/Services/RoleService.cs +++ b/src/DevHive.Services/Services/RoleService.cs @@ -1,26 +1,38 @@ using System; using System.Threading.Tasks; using DevHive.Data.Repositories; +using DevHive.Services.Models.Identity.Role; +using Microsoft.AspNetCore.Mvc; namespace DevHive.Services.Services { public class RoleService { - /* private readonly DevHiveContext _context; + private readonly DevHiveContext _context; public RoleService(DevHiveContext context) { this._context = context; } - public Task<IActionResult> CreatePost(string name) + public Task<IActionResult> CreateRole(RoleServiceModel roleServiceModel) { throw new NotImplementedException(); } - public Task<IActionResult> GetPostById(uint postId) + public Task<IActionResult> GetRoleById(Guid id) { throw new NotImplementedException(); - }*/ + } + + public Task<IActionResult> UpdateRole(RoleServiceModel roleServiceModel) + { + throw new NotImplementedException(); + } + + public Task<IActionResult> DeleteRole(Guid id) + { + throw new NotImplementedException(); + } } } |
