Example #1
0
 public static ILocation MapFromDto(Dto.Location dto)
 {
     return(new Location
     {
         Id = dto.Id,
         Name = dto.Name
     });
 }
Example #2
0
        public static Dto.Location MapToDto(ILocation location)
        {
            var dto = new Dto.Location
            {
                Id   = location.Id,
                Name = location.Name
            };

            return(dto);
        }