@ -181,6 +181,6 @@ namespace Yavsc.Models
public DbSet<EstimateTemplate> EstimateTemplates { get; set; }
public DbSet<Contact> Contacts { get; set; }
}
@ -12,7 +12,10 @@ namespace Yavsc.Models
[Required()]
public string OwnerId { get; set; }
[ForeignKeyAttribute("OwnerId"),JsonIgnore]
[ForeignKeyAttribute("OwnerId"),NotMapped]
public virtual ApplicationUser Owner { get; set; }
[ForeignKeyAttribute("UserId"),NotMapped]
public virtual ApplicationUser User { get; set; }