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