Guest User

Untitled

a guest
Feb 15th, 2024
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. using System.ComponentModel;
  2. using System.Linq;
  3.  
  4. namespace Mitarbeiter.Models
  5. {
  6. public class EmployeeViewModel
  7. {
  8. public int Id { get; set; }
  9.  
  10. [DisplayName("First Name")]
  11.  
  12. public string FirstName { get; set; }
  13.  
  14. [DisplayName("Last Name")]
  15.  
  16. public string LastName { get; set; }
  17.  
  18. [DisplayName("Date of Birth")]
  19.  
  20. public DateTime DOB { get; set; }
  21.  
  22. [DisplayName("Email")]
  23.  
  24. public string Email { get; set; }
  25.  
  26. public double Salary { get; set; }
  27.  
  28. [DisplayName("Name")]
  29.  
  30. public string FullName {
  31. get { return FirstName + " " + LastName; }
  32. }
  33.  
  34. }
  35. }
  36.  
Advertisement
Add Comment
Please, Sign In to add comment