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