Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class UserDetail
- {
- [Key]
- public int DetailId { get; set; }
- // user ID from AspNetUser table.
- [ForeignKey("ApplicationUser")]
- public string OwnerID { get; set; }
- [Display(Name = "First name")]
- [Required]
- [StringLength(120, ErrorMessage = ("First name is required"))]
- public string Name { get; set; }
- [Display(Name = "Last name")]
- [Required]
- [StringLength(120, ErrorMessage = ("Last name is required"))]
- public string LastName { get; set; }
- [Required]
- [ForeignKey("Company")]
- public int CompanyId { get; set; }
- [Required]
- [ForeignKey("Store")]
- public int StoreId { get; set; }
- public Company Company { get; set; }
- public Store Store { get; set; }
- public ApplicationUser User { get; set; }
- }
- <ul class="dropdown-menu">
- <li><a asp-controller="StockOnHand" asp-action="List" asp-route-id="1">List current Stock</a></li>
- <li><a asp-controller="StockOnHand" asp-action="TakeInSerial" asp-route-id="1">Receive a product</a></li>
- </ul>
Add Comment
Please, Sign In to add comment