You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tp1Entity/tp1/Model2Entities/Extensions.cs

21 lines
424 B

using Entities;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace Model2Entities
{
public static class Extensions
{
public static Book ConvertToModel(this BookEntity book)
{
return new Book(book.Id, book.Title, book.Author, book.Isbn);
}
}
}