public void CopyValuesToEntity(BookLibrary.Entities.Reader dbBook) { dbBook.FirstName = this.FirstName; dbBook.LastName = this.LastName; dbBook.PhoneNumber = this.PhoneNumber; dbBook.CreatedDate = this.CreatedDate; }
public ReaderModel(BookLibrary.Entities.Reader reader) { this.ID = reader.ID; this.FirstName = reader.FirstName; this.LastName = reader.LastName; this.PhoneNumber = reader.PhoneNumber; this.CreatedDate = reader.CreatedDate; }