using System; using System.Threading.Tasks; using AutoMapper; using DevHive.Data.Repositories; using DevHive.Services.Models.Identity; using DevHive.Services.Options; using DevHive.Services.Services; using DevHive.Web.Models.Identity.User; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace DevHive.Web.Controllers { [ApiController] [Route("/api/[controller]")] public class UserController: ControllerBase { private readonly UserService _service; public UserController(DevHiveContext context, IMapper mapper, JWTOptions jwtOptions) { //this._service = new UserService(context, mapper, jwtOptions); } [HttpPost] [Route("Login")] public async Task Login([FromBody] LoginWebModel loginWebModel) { //return await this._service.LoginUser(loginDTO); throw new NotImplementedException(); } [HttpPost] [Route("Register")] public async Task Register([FromBody] RegisterWebModel registerWebModel) { //return await this._service.RegisterUser(registerDto); throw new NotImplementedException(); } //Read [HttpGet] public async Task GetById(Guid id) { //return await this._service.GetUserById(id); throw new NotImplementedException(); } //Update [HttpPut] [Authorize] public async Task Update(Guid id, [FromBody] UpdateUserWebModel updateUserWebModel) { //return await this._service.UpdateUser(id, userDTO); throw new NotImplementedException(); } //Delete [HttpDelete] [Authorize] public async Task Delete(Guid id) { //return await this._service.DeleteUser(id); throw new NotImplementedException(); } } }