f97f891d67
Full ASP.NET Core 10 Razor Pages app for آساد ابزار tool repair shop in Karaj, Iran (official DeWalt representative). Features: - Homepage, Services, DeWalt page, Shop (pagination + images) - 10 brand SEO pages (/brands/*) with rich Persian content + FAQ schema - Blog engine with admin management (/blog, /Admin/Blog) - Cart, Checkout, Contact (OpenStreetMap embed) - Admin panel: Products CRUD, Orders, Blog, Change Password - Jalali date formatting, product images, SiteData centralised contact - Docker + docker-compose with healthcheck - Gitea CI/CD via .gitea/workflows/ci-cd.yml (NuGet through Nexus mirror) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
479 B
C#
17 lines
479 B
C#
using AsadiTools.Services;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
namespace AsadiTools.Pages.Services;
|
|
|
|
public class BrandModel : PageModel
|
|
{
|
|
public BrandInfo? Brand { get; private set; }
|
|
|
|
public void OnGet(string id)
|
|
{
|
|
Brand = SiteData.Brands.FirstOrDefault(b => b.Id == id);
|
|
if (Brand is not null)
|
|
ViewData["Description"] = $"{Brand.Description} تعمیر {string.Join("، ", Brand.Services)} {Brand.NameFa} در کرج.";
|
|
}
|
|
}
|