diff --git a/GrossesMitaines/GrossesMitainesAPI/Controllers/UserController.cs b/GrossesMitaines/GrossesMitainesAPI/Controllers/UserController.cs index c5f90f6..c2e4632 100644 --- a/GrossesMitaines/GrossesMitainesAPI/Controllers/UserController.cs +++ b/GrossesMitaines/GrossesMitainesAPI/Controllers/UserController.cs @@ -40,7 +40,6 @@ public class UserController : Controller { #region API Methods [HttpPost, AllowAnonymous] public ActionResult 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); }