Xola Dlamini

Xola Dlamini

  • NA
  • 64
  • 3.2k

Trying to build an MVC project for people to book a spa appointment

Jul 9 2020 9:06 AM
Hello. I'm still learning C#,. I only know the basics of building a simple code first application with simple calculating methods, including ViewModels and PartialViews. 
I want to complete an appointment system that will allow clients to book an appointment at a spa a timeslot they pick on any day of their choosing. How would you recommend I go about starting and completing this system, is there a book I can learn from or video tutorials? Please help.
 
So far i've created these objects
public class Department
{
[Key]
public int DepID { get; set; }
public string Name { get; set; }
}
public class Product
{
[Key]
public int ProdID { get; set; }
public string Name { get; set; }
public string Desc { get; set; }
public decimal Price { get; set; }
public int? CatID { get; set; }
public virtual Category Category { get; set; }
}
public class Seasonal
{
[Key]
public int SeasID { get; set; }
public string Desc { get; set; }
public decimal Discount { get; set; }
public int? TreatID { get; set; }
public virtual Treatment Treatment { get; set; }
}
public class Treatment
{
[Key]
public int TreatID { get; set; }
public string Name { get; set; }
public string Desc { get; set; }
public decimal Price { get; set; }
public int? AddID { get; set; }
public virtual AddOn AddOn { get; set; }
}
public class Client
{
[Key]
public int ClientID { get; set; }
public string Token { get; set; }
public string Name { get; set; }
public DateTime BirthDate { get; set; }
public string Phone { get; set; }
public string Address { get; set; }
public DateTime DateTime { get; set; }
}
public class Category
{
[Key]
public int CatID { get; set; }
public string NAme { get; set; }
}
public class Beautician
{
[Key]
public int BeID { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Phone { get; set; }
public bool IsAvailable { get; set; }
public string Address { get; set; }
public int DepId { get; set; }
public virtual Department Department { get; set; }
}
public class AddOn
{
[Key]
public int AddOnID { get; set; }
public string Name { get; set; }
public decimal Price { get; set; }
}
public class Appointment
{
[Key]
public int AppoID { get; set; }
public DateTime StartTime { get; set; }
public DateTime FinishTime { get; set; }
public string Detail { get; set; }
public bool Status { get; set; }
public int ClientId { get; set; }
public virtual Client Client { get; set; }
public int BeauId { get; set; }
public virtual Beautician Beautician { get; set; }
}
 

Answers (3)