Exemplo n.º 1
0
 public static Author UpdateAuthor(InputAuthorModel input, Author author)
 {
     author.Name     = input.Name;
     author.LastName = input.LastName;
     author.Email    = input.Email;
     author.Birth    = Convert.ToDateTime(input.Birth);
     return(author);
 }
Exemplo n.º 2
0
 public static Author Create(InputAuthorModel input)
 {
     return(new Author()
     {
         Name = input.Name,
         LastName = input.LastName,
         Email = input.Email,
         Birth = Convert.ToDateTime(input.Birth)
     });
 }