using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace BarberShopApp.Models
public class BarberShopModel
[StringLength(50, ErrorMessage = "Please enter Correct Customer Name", MinimumLength = 4)]
[Display(Name = "Customer Name")]
public string CustName { get; set; }
[Display(Name = "Phone Number")]
public int PhoneNumber { get; set; }
[Display(Name = "Need Specific Barber?")]
public string BarberName { get; set; }
public IndexModelObject ModelData { get; set; }
public class IndexModelObject
public IEnumerable<Barbers> WorkingBarbers { get; set; }
public IEnumerable<Customer> Customers { get; set; }
public string Name { get; set; }
public int PhoneNumber { get; set; }
public string SpecitificBarbar { get; set; }
public int TockenNumber { get; set; }
public int ID { get; set; }
public string FName { get; set; }
public bool IsActive { get; set; }
public bool IsWorking { get; set; }
public int NumberOfCustomer { get; set; }
public static class DALBarbersRepo
public static IEnumerable<DALBarbers> GetBarberList()
List<DALBarbers> dalBarberList = new List<DALBarbers>();
dalBarberList.Add(new DALBarbers() { ID = 1, FName = "Joe", IsActive = true, IsWorking = true });
dalBarberList.Add(new DALBarbers() { ID = 2, FName = "Gary", IsActive = true, IsWorking = true });
dalBarberList.Add(new DALBarbers() { ID = 3, FName = "Fedy", IsActive = true, IsWorking = false });
public int ID { get; set; }
public string FName { get; set; }
public bool IsActive { get; set; }
public bool IsWorking { get; set; }
public static class DALCustomersRepo
public static IEnumerable<DALCustomer> GetCustomersList()
List<DALCustomer> dalCustomerList = new List<DALCustomer>();
dalCustomerList.Add(new DALCustomer() { Name = "Jason", PhoneNumber = 123, SpecitificBarbar = 1, IsTentative = false });
dalCustomerList.Add(new DALCustomer() { Name = "Rick", PhoneNumber = 234, SpecitificBarbar = 1, IsTentative = false });
dalCustomerList.Add(new DALCustomer() { Name = "Gorden", PhoneNumber = 345, SpecitificBarbar = 0, IsTentative = false });
dalCustomerList.Add(new DALCustomer() { Name = "Aman", PhoneNumber = 456, SpecitificBarbar = 0, IsTentative = false });
dalCustomerList.Add(new DALCustomer() { Name = "Henry", PhoneNumber = 567, SpecitificBarbar = 0, IsTentative = false });
dalCustomerList.Add(new DALCustomer() { Name = "Amrit", PhoneNumber = 678, SpecitificBarbar = 0, IsTentative = false });
dalCustomerList.Add(new DALCustomer() { Name = "Vaibhav", PhoneNumber = 789, SpecitificBarbar = 1, IsTentative = true });
public string Name { get; set; }
public int PhoneNumber { get; set; }
public int SpecitificBarbar { get; set; }
public bool IsTentative { get; set; }