public static TapTinYKienCoQuanResult ToDataResult(this TapTinYKienCoQuan entity) { return(new TapTinYKienCoQuanResult { Id = entity.Id, YKienCoQuanId = entity.YKiencoQuanTacNghiepId, YKienCoQuanInfo = entity.TacNghiep_YKienCoQuan.ToDataInfo(), Url = entity.Url, UserUploadId = entity.UserUploadId, UserInfo = entity.User.ToIfNotNullDataInfo(), CreateDate = entity.CreateDate, CreatedBy = entity.CreatedBy, IsDeleted = entity.IsDeleted, LastUpdated = entity.LastUpdated, LastUpdatedBy = entity.LastUpdatedBy }); }
public static TapTinYKienCoQuanResult ToIfNotNullDataResult(this TapTinYKienCoQuan entity) { return(entity?.ToDataResult()); }