private CentreTypeDTO Map(tblCentreType tbl) { var dto = new CentreTypeDTO { MasterId = tbl.Id, DateCreated = tbl.IM_DateCreated, DateLastUpdated = tbl.IM_DateLastUpdated, StatusId = tbl.IM_Status, Code = tbl.Code, Name = tbl.Name, Description = tbl.Description }; return dto; }
public CentreType Map(CentreTypeDTO dto) { if (dto == null) return null; var centreType = Mapper.Map<CentreTypeDTO, CentreType>(dto); return centreType; }