# Model

**Model** - ASP.NET MVC strukturasida modellar biznes logikani saqlovchi sinflardir. Ushbu sinflar loyihalarda saqlanadigan har qanday ma’lumotlarning modellarini yaratgan holda ulardan osongina foydalanish imkonini beradi. Ya’ni, loyihada qanday ma’lumot almashinuvi mavjud bo’lmasin, ularning barchasi «Models» papkasida sinflar ko’rinishida saqlanadi.

Faraz qilaylik, loyihada foydalanuvchilarga hisob yaratish, yaratilgan hisob ma’lumotlarini tahrirlah va hisobdan chiqish imkoniyatlarini bersin. Bunda biz har bir foydalanuvchiga oid ma’lumotlar: ID, Firstname, Lastname, Email va Password kabi ma’lumotlarni saqlashimiz uchun, aynan mana shunday xususiyatlarga ega sinfni «Models» papkasida yaratishimiz kerak bo’ladi.

```csharp
public class User
{
    public Guid Id  {get; set;}
    public string  Firstname { get; set; }
    public string  Lastname { get; set; }
    public string  Email { get; set; }
    public string Password  {get; set;}
}
```

Yuqoridagi sinf umumiy biznes logikani saqlab qolgan holda, foydalanuvchilar ma’lumotlarining oson almashuvini ta’minlashda yordam beradi.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dot-net.uz/c-.net/web-development/asp.net-core-mvc/model.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
