Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.ComponentModel;
- using System.Linq;
- namespace Mitarbeiter.Models
- {
- public class EmployeeViewModel
- {
- public int Id { get; set; }
- [DisplayName("First Name")]
- public string FirstName { get; set; }
- [DisplayName("Last Name")]
- public string LastName { get; set; }
- [DisplayName("Date of Birth")]
- public DateTime DOB { get; set; }
- [DisplayName("Email")]
- public string Email { get; set; }
- public double Salary { get; set; }
- [DisplayName("Name")]
- public string FullName {
- get { return FirstName + " " + LastName; }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment