Employee.cs 664 B

123456789101112131415161718192021
  1. using System;
  2. namespace RestaurantApp.Models
  3. {
  4. public class Employee
  5. {
  6. public int EmployeeId { get; set; }
  7. public int PositionId { get; set; }
  8. public string PositionTitle { get; set; }
  9. public string FirstName { get; set; }
  10. public string LastName { get; set; }
  11. public string MiddleName { get; set; }
  12. public string Phone { get; set; }
  13. public string Email { get; set; }
  14. public DateTime HireDate { get; set; }
  15. public decimal Salary { get; set; }
  16. public bool IsActive { get; set; }
  17. public string FullName => $"{LastName} {FirstName} {MiddleName}".Trim();
  18. }
  19. }