Overview
TheCE_Canchas entity represents a sports court in the system. It contains information about the court’s name, type, pricing, and availability status.
Learn more about Mintlify
Enter your email to receive updates about new features and product releases.
Entity representing sports courts (canchas) in the system
CE_Canchas entity represents a sports court in the system. It contains information about the court’s name, type, pricing, and availability status.
public class CE_Canchas
{
public int IdCancha { get; set; }
public string? Nombre { get; set; }
public string? Tipo { get; set; }
public decimal PrecioPorHora { get; set; }
public string? Estado { get; set; }
}
public class CE_EstadosReservas
{
public int IdEstado { get; set; }
public bool Estado { get; set; }
}
public class CanchaViewModel
{
public CE_Canchas Canchas { get; set; }
public List<CE_Canchas> ListaCanchas { get; set; }
}
// Creating a new court
var cancha = new CE_Canchas
{
IdCancha = 1,
Nombre = "Cancha Fútbol 1",
Tipo = "Fútbol",
PrecioPorHora = 50.00m,
Estado = "Disponible"
};
// Using the ViewModel
var viewModel = new CanchaViewModel
{
Canchas = cancha,
ListaCanchas = new List<CE_Canchas>()
};