API

ProcessFlow.cs 759B

12345678910111213141516171819202122232425
  1. using System.ComponentModel.DataAnnotations.Schema;
  2. using UnivateProperties_API.Model.Timeshare;
  3. namespace UnivateProperties_API.Model.ProcessFlow
  4. {
  5. public class ProcessFlow : BaseEntity
  6. {
  7. [ForeignKey("Timeshare")]
  8. public int? TimeshareID { get; set; }
  9. [ForeignKey("Property")]
  10. public int? PropertyID { get; set; }
  11. [ForeignKey("Status")]
  12. public int StatusID { get; set; }
  13. public virtual TimeshareWeek Timeshare { get; set; }
  14. public virtual Properties.Property Property { get; set; }
  15. public virtual Status Status { get; set; }
  16. public override string ToString()
  17. {
  18. return $"{(TimeshareID ?? PropertyID).Value} - {Status?.Code}";
  19. }
  20. }
  21. }