.jkm b cnhflfybz

This commit is contained in:
bekodeg 2024-05-29 15:26:54 +04:00
parent 7d945a26bc
commit d5fc32850c
3 changed files with 9 additions and 9 deletions

View File

@ -5,7 +5,7 @@ using System.Xml.Linq;
namespace VendorClient.Controllers namespace VendorClient.Controllers
{ {
[Route("[action]")] [Route("Home/[action]")]
public class BuildController : Controller public class BuildController : Controller
{ {
private readonly ILogger _logger; private readonly ILogger _logger;
@ -28,7 +28,7 @@ namespace VendorClient.Controllers
{ {
if (APIClient.Vendor == null) if (APIClient.Vendor == null)
{ {
return Redirect("~/Enter"); return Redirect("~/Home/Enter");
} }
return View(APIClient.GetRequest<List<BuildViewModel>>($"{API_ROUTE}/getbuilds?userId={APIClient.Vendor.Id}")); return View(APIClient.GetRequest<List<BuildViewModel>>($"{API_ROUTE}/getbuilds?userId={APIClient.Vendor.Id}"));
} }
@ -49,7 +49,7 @@ namespace VendorClient.Controllers
Name = buildName, Name = buildName,
VendorId = APIClient.Vendor.Id VendorId = APIClient.Vendor.Id
}); });
Response.Redirect("Builds"); Response.Redirect("~/Home/Builds");
} }
[HttpGet] [HttpGet]
@ -67,7 +67,7 @@ namespace VendorClient.Controllers
{ {
Id = id Id = id
}); });
Response.Redirect("Builds"); Response.Redirect("~/Home/Builds");
} }
[HttpGet] [HttpGet]
@ -90,7 +90,7 @@ namespace VendorClient.Controllers
Id = buildId, Id = buildId,
Name = buildName Name = buildName
}); });
Response.Redirect("Builds"); Response.Redirect("~/Home/Builds");
} }
} }
} }

View File

@ -6,7 +6,7 @@ using VendorClient.Models;
namespace VendorClient.Controllers namespace VendorClient.Controllers
{ {
[Route("[action]")] [Route("Home/[action]")]
public class HomeController : Controller public class HomeController : Controller
{ {
private readonly ILogger<HomeController> _logger; private readonly ILogger<HomeController> _logger;
@ -64,7 +64,7 @@ namespace VendorClient.Controllers
Login = email, Login = email,
Password = password Password = password
}); });
Response.Redirect("Enter"); Response.Redirect("~/Home/Enter");
return; return;
} }

View File

@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Mvc;
namespace VendorClient.Controllers namespace VendorClient.Controllers
{ {
[Route("[action]")] [Route("Home/[action]")]
public class PurchaseController : Controller public class PurchaseController : Controller
{ {
private readonly ILogger<PurchaseController> _logger; private readonly ILogger<PurchaseController> _logger;
@ -67,7 +67,7 @@ namespace VendorClient.Controllers
{ {
if (APIClient.Vendor == null) if (APIClient.Vendor == null)
{ {
return Redirect("~/Enter"); return Redirect("~/Home/Enter");
} }
ViewBag.Purchases = APIClient.PostRequestWithResult<PurchaseSearchModel, List<PurchaseViewModel>>( ViewBag.Purchases = APIClient.PostRequestWithResult<PurchaseSearchModel, List<PurchaseViewModel>>(