public static CongViecPhoiHopResult ToDataResult(this CongViec_PhoiHop entity) { return(new CongViecPhoiHopResult { Id = entity.Id, HoSoCongViec = entity.HoSoCongViec.ToDataInfo(), HoSoCongViecId = entity.HoSoCongViecId, UserInfo = entity.User.ToDataInfo(), UserId = entity.UserId, CreateDate = entity.CreateDate, CreatedBy = entity.CreatedBy, IsDeleted = entity.IsDeleted, LastUpdated = entity.LastUpdated, LastUpdatedBy = entity.LastUpdatedBy }); }
public static CongViecPhoiHopResult ToIfNotNullDataResult(this CongViec_PhoiHop entity) { return(entity?.ToDataResult()); }