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

View File

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

View File

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