fix
This commit is contained in:
parent
9ab410c5af
commit
410ee5cb9f
@ -43,7 +43,6 @@ namespace HardwareShopClientApp.Controllers
|
|||||||
|
|
||||||
public IActionResult Index()
|
public IActionResult Index()
|
||||||
{
|
{
|
||||||
//return RedirectToAction("MainWorker", "Worker");
|
|
||||||
if (APIClient.User == null)
|
if (APIClient.User == null)
|
||||||
{
|
{
|
||||||
return Redirect("~/Home/Enter");
|
return Redirect("~/Home/Enter");
|
||||||
@ -83,8 +82,7 @@ namespace HardwareShopClientApp.Controllers
|
|||||||
}
|
}
|
||||||
if ((int)APIClient.User.Role == 1)
|
if ((int)APIClient.User.Role == 1)
|
||||||
{
|
{
|
||||||
//TempData["UserId"] = APIClient.User.Id;
|
return RedirectToAction("MainWorker", "Worker");
|
||||||
return RedirectToAction("WorkerReport", "Worker");
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -17,8 +17,6 @@ namespace HardwareShopClientApp.Controllers
|
|||||||
_logger = logger;
|
_logger = logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public IActionResult Comments()
|
public IActionResult Comments()
|
||||||
{
|
{
|
||||||
return View();
|
return View();
|
||||||
@ -37,18 +35,12 @@ namespace HardwareShopClientApp.Controllers
|
|||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IActionResult Purchases()
|
public IActionResult Purchases()
|
||||||
{
|
{
|
||||||
//return View();
|
|
||||||
//string login = (string)TempData["UserId"];
|
|
||||||
|
|
||||||
return View(APIClient.GetRequest<List<PurchaseViewModel>>($"api/client/getpurchases?UserId={APIClient.User.Id}"));
|
return View(APIClient.GetRequest<List<PurchaseViewModel>>($"api/client/getpurchases?UserId={APIClient.User.Id}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public void Purchases(int id)
|
public void Purchases(int id)
|
||||||
{
|
{
|
||||||
//return View();
|
|
||||||
//string login = (string)TempData["UserId"];
|
|
||||||
|
|
||||||
Response.Redirect("Purchase");
|
Response.Redirect("Purchase");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,9 +48,6 @@ namespace HardwareShopClientApp.Controllers
|
|||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IActionResult Purchase()
|
public IActionResult Purchase()
|
||||||
{
|
{
|
||||||
//return View();
|
|
||||||
//string login = (string)TempData["UserId"];
|
|
||||||
|
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,18 +65,12 @@ namespace HardwareShopClientApp.Controllers
|
|||||||
[HttpPost]
|
[HttpPost]
|
||||||
public void Builds(int id)
|
public void Builds(int id)
|
||||||
{
|
{
|
||||||
//return View();
|
|
||||||
//string login = (string)TempData["UserId"];
|
|
||||||
|
|
||||||
Response.Redirect("Build");
|
Response.Redirect("Build");
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IActionResult Build()
|
public IActionResult Build()
|
||||||
{
|
{
|
||||||
//return View();
|
|
||||||
//string login = (string)TempData["UserId"];
|
|
||||||
|
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user