Update UserController.cs

This commit is contained in:
MarcEricMartel 2022-11-08 08:29:54 -08:00
parent 9c508f67be
commit df620ecec3

View File

@ -40,7 +40,6 @@ public class UserController : Controller {
#region API Methods #region API Methods
[HttpPost, AllowAnonymous] [HttpPost, AllowAnonymous]
public ActionResult<ReturnUserViewModel> Post(SignUpUserModel sign) { public ActionResult<ReturnUserViewModel> Post(SignUpUserModel sign) {
int x = 0;
InventoryUser usr; InventoryUser usr;
try { try {
usr = new() { usr = new() {
@ -81,7 +80,6 @@ public class UserController : Controller {
t1.Wait(); t1.Wait();
var t2 = _userMan.AddToRoleAsync(usr, "Client"); var t2 = _userMan.AddToRoleAsync(usr, "Client");
t2.Wait(); t2.Wait();
} catch (Exception e) { } catch (Exception e) {
return BadRequest(e.Message); return BadRequest(e.Message);
} }