private CountryDTO Map(tblCountry tbl) { var dto = new CountryDTO { MasterId = tbl.id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, Name = tbl.Name, Code = tbl.Code, Currency = tbl.Currency }; return dto; }
public Country Map(CountryDTO dto) { if (dto == null) return null; var country = Mapper.Map<CountryDTO, Country>(dto); return country; }