Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class ServiceMapper
- {
- public static IEnumerable<Models.Service> MapToBL(IEnumerable<Task10.DAL.Models.Service> services) =>
- services.Select(x => MapToBL(x));
- public static Models.Service MapToBL(Task10.DAL.Models.Service service) =>
- new Models.Service
- {
- Id = service.Id,
- Name = service.Name,
- Description = service.Description,
- ImageUrl = service.ImageUrl,
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement