Guest User

Untitled

a guest
Mar 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. public class UserDetail
  2. {
  3. [Key]
  4. public int DetailId { get; set; }
  5.  
  6. // user ID from AspNetUser table.
  7. [ForeignKey("ApplicationUser")]
  8. public string OwnerID { get; set; }
  9.  
  10. [Display(Name = "First name")]
  11. [Required]
  12. [StringLength(120, ErrorMessage = ("First name is required"))]
  13. public string Name { get; set; }
  14.  
  15. [Display(Name = "Last name")]
  16. [Required]
  17. [StringLength(120, ErrorMessage = ("Last name is required"))]
  18. public string LastName { get; set; }
  19.  
  20. [Required]
  21. [ForeignKey("Company")]
  22. public int CompanyId { get; set; }
  23.  
  24. [Required]
  25. [ForeignKey("Store")]
  26. public int StoreId { get; set; }
  27.  
  28. public Company Company { get; set; }
  29.  
  30. public Store Store { get; set; }
  31.  
  32. public ApplicationUser User { get; set; }
  33.  
  34. }
  35.  
  36. <ul class="dropdown-menu">
  37. <li><a asp-controller="StockOnHand" asp-action="List" asp-route-id="1">List current Stock</a></li>
  38. <li><a asp-controller="StockOnHand" asp-action="TakeInSerial" asp-route-id="1">Receive a product</a></li>
  39. </ul>
Add Comment
Please, Sign In to add comment