Ejemplo n.º 1
0
 public void Add(SAuthor author)
 {
     AuthorRepository.Add(new DAuthor
     {
         FirstName   = author.FirstName,
         LastName    = author.LastName,
         Email       = author.Email,
         Address     = author.Address,
         Description = author.Description,
     });
 }
Ejemplo n.º 2
0
 public void Update(SAuthor author)
 {
     AuthorRepository.Update(new DAuthor
     {
         Id          = author.Id,
         FirstName   = author.FirstName,
         LastName    = author.LastName,
         Email       = author.Email,
         Address     = author.Address,
         Description = author.Description,
     });
 }